@Test
public void testValidLocationReference() throws PhysicalFormatException {

    Coordinates coordinates = Coordinates.newBuilder()
            .setLongitude(1.5)
            .setLatitude(2.5)
            .build();
    GeoCoordinatesLocationReference geoCoordinatesLocationReference = GeoCoordinatesLocationReference.newBuilder()
            .setCoordinates(coordinates)
            .build();
    LocationReferenceData locationReferenceData = LocationReferenceData.newBuilder()
            .setGeoCoordinatesLocationReference(geoCoordinatesLocationReference)
            .build();
    RawLocationReference rawLocationReference = geoCoordinatesDecoder.decode("1", locationReferenceData);
    assertNotNull(rawLocationReference);
    assertEquals("1", rawLocationReference.getID());
    assertEquals(LocationType.GEO_COORDINATES, rawLocationReference.getLocationType());
    GeoCoordinates geoCoordinates = rawLocationReference.getGeoCoordinates();
    assertNotNull(geoCoordinates);
    assertEquals(geoCoordinates.getLongitudeDeg(), 1.5);
    assertEquals(geoCoordinates.getLatitudeDeg(), 2.5);
}