### Question:
EventStatusExtensionUtils { public static void setValue( @Nonnull IBaseHasExtensions resource, @Nullable EventStatus eventStatus, @Nonnull Function<String, IElement> typeFactory ) { BaseExtensionUtils.setStringValue( URL, resource, eventStatus == null ? null : eventStatus.name(), typeFactory ); } private  EventStatusExtensionUtils(); static void setValue( @Nonnull IBaseHasExtensions resource, @Nullable EventStatus eventStatus, @Nonnull Function<String, IElement> typeFactory ); @Nullable static EventStatus getValue( @Nonnull IBaseHasExtensions resource ); static final String URL; }### Answer:
@Test public void setValue() { TestPlanDefinition planDefinition = new TestPlanDefinition(); EventStatusExtensionUtils.setValue( planDefinition, EventStatus.OVERDUE, TypeFactory::createType ); Assert.assertEquals( 1, planDefinition.getExtension().size() ); Assert.assertEquals( EventStatusExtensionUtils.URL, planDefinition.getExtension().get( 0 ).getUrl() ); Assert.assertEquals( "OVERDUE", planDefinition.getExtension().get( 0 ).getValue().toString() ); }