### Question:
Dstu3GeoDhisToFhirTransformerUtils extends AbstractGeoDhisToFhirTransformerUtils { @Nullable @Override public IBaseBackboneElement createPosition( @Nullable Location location ) { if ( location == null ) { return null; } final LocationPositionComponent lpc = new LocationPositionComponent(); lpc.setLatitude( location.getLatitude() ); lpc.setLongitude( location.getLongitude() ); return lpc; } Dstu3GeoDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull ValueConverter valueConverter ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Override void updateAddressLocation( @Nonnull IElement element, @Nullable Location location ); @Nullable @Override IBaseBackboneElement createPosition( @Nullable Location location );  }### Answer:
@Test public void createPositionNull() { Assert.assertNull( utils.createPosition( null ) ); }
@Test public void createPosition() { final Location location = new Location( 47.1, -23.2 ); final LocationPositionComponent position = (LocationPositionComponent) utils.createPosition( location ); Assert.assertEquals( 47.1, Objects.requireNonNull( position ).getLongitude().doubleValue(), 0.0 ); Assert.assertEquals( -23.2, Objects.requireNonNull( position ).getLatitude().doubleValue(), 0.0 ); }