### Question:
LocationExtensionUtils { public static void setValue( @Nonnull IBaseHasExtensions resource, @Nullable IBaseReference locationReference ) { BaseExtensionUtils.setReferenceValue( URL, resource, locationReference ); } private  LocationExtensionUtils(); static void setValue( @Nonnull IBaseHasExtensions resource, @Nullable IBaseReference locationReference ); @Nullable static IBaseReference getValue( @Nonnull IBaseHasExtensions resource ); static final String URL; static final String LOCATION_SEARCH_PARAM; }### Answer:
@Test public void resetValue() { TestPlanDefinition planDefinition = new TestPlanDefinition(); LocationExtensionUtils.setValue( planDefinition, new TestReference() ); LocationExtensionUtils.setValue( planDefinition, null ); Assert.assertTrue( planDefinition.getExtension().isEmpty() ); }
@Test public void setValue() { TestPlanDefinition planDefinition = new TestPlanDefinition(); final TestReference reference = new TestReference(); LocationExtensionUtils.setValue( planDefinition, reference ); Assert.assertEquals( 1, planDefinition.getExtension().size() ); Assert.assertEquals( LocationExtensionUtils.URL, planDefinition.getExtension().get( 0 ).getUrl() ); Assert.assertEquals( reference, planDefinition.getExtension().get( 0 ).getValue() ); }