ImmutableFeatureFromCopyBuilder implements FeatureBuilder, FeatureBuilder.FromCopyBuildable { @Override public Feature build() { return ImmutableFeature.of(featureId, definition, properties); } private  ImmutableFeatureFromCopyBuilder(final String theFeatureId); static ImmutableFeatureFromCopyBuilder of(final Feature feature); @Override FromCopyBuildable definition(@Nullable final FeatureDefinition featureDefinition); @Override FromCopyBuildable properties(@Nullable final FeatureProperties properties); @Override FromCopyBuildable properties(@Nullable final JsonObject properties); @Override FromCopyBuildable properties(final Function<FeatureProperties, FeatureProperties> transform); @Override FromCopyBuildable setId(final String featureId); @Override FromCopyBuildable setId(final Predicate<String> existingIdPredicate, final String featureId); @Override Feature build();  }
@Test public void builderOfFeatureIsCorrectlyInitialised() { final Feature feature = underTest.build(); assertThat(feature).isEqualTo(TestConstants.Feature.FLUX_CAPACITOR); }