package au.gov.ga.geodesy.support.moxy;

import java.io.InputStreamReader;
import java.io.Reader;

import org.junit.Assert;
import org.testng.annotations.Test;

import au.gov.xml.icsm.geodesyml.v_0_2_1.GeodesyMLType;

public class GeodesyMLMoxyTest {

    private GeodesyMLMoxy marshaller;

    public GeodesyMLMoxyTest() throws Exception {
        marshaller = new GeodesyMLMoxy();
    }

    @Test
    public void unmarshal() throws Exception {
        Reader input = new InputStreamReader(Thread.currentThread()
            .getContextClassLoader()
            .getResourceAsStream("sitelog/geodesyml/MOBS.xml"));

        GeodesyMLType geodesyML = marshaller.unmarshal(input).getValue();

        Assert.assertEquals(24, geodesyML.getNodeOrAbstractPositionOrPositionPairCovariance().size());
        geodesyML.getNodeOrAbstractPositionOrPositionPairCovariance().forEach(x -> {
            System.out.println(x.getName());
        });
    }
}

package au.gov.ga.geodesy.support.moxy;

import java.io.InputStreamReader;
import java.io.Reader;

import org.testng.annotations.Test;

import au.gov.xml.icsm.geodesyml.v_0_2_1.GeodesyMLType;

public class GeodesyMLMoxyTest {

    private GeodesyMLMoxy marshaller;

    public GeodesyMLMoxyTest() throws Exception {
        marshaller = new GeodesyMLMoxy();
    }

    @Test
    public void unmarshal() throws Exception {
        Reader input = new InputStreamReader(Thread.currentThread()
            .getContextClassLoader()
            .getResourceAsStream("sitelog/geodesyml/MOBS.xml"));

        GeodesyMLType geodesyML = marshaller.unmarshal(input).getValue();

        geodesyML.getNodeOrAbstractPositionOrPositionPairCovariance().forEach(x -> {
            System.out.println(x.getName());
        });

    }
}

--- 
+++ 
@@ -3,6 +3,7 @@
 import java.io.InputStreamReader;
 import java.io.Reader;
 
+import org.junit.Assert;
 import org.testng.annotations.Test;
 
 import au.gov.xml.icsm.geodesyml.v_0_2_1.GeodesyMLType;
@@ -23,9 +24,9 @@
 
         GeodesyMLType geodesyML = marshaller.unmarshal(input).getValue();
 
+        Assert.assertEquals(24, geodesyML.getNodeOrAbstractPositionOrPositionPairCovariance().size());
         geodesyML.getNodeOrAbstractPositionOrPositionPairCovariance().forEach(x -> {
             System.out.println(x.getName());
         });
-
     }
 }
Add test condition to GeodesyML unmarshall test.
