FieldsMappingOptions { public static FieldsMappingOption hintA(final Class<?>... type) { return new FieldsMappingOption() { public void apply(DozerBuilder.FieldMappingBuilder fieldMappingBuilder) { String declaration = mergeTypeNames(type); fieldMappingBuilder.srcHintContainer(declaration); } }; } private  FieldsMappingOptions(); static FieldsMappingOption copyByReference(); static FieldsMappingOption customConverter(final Class<? extends CustomConverter> type); static FieldsMappingOption customConverter(final Class<? extends CustomConverter> type, final String parameter); static FieldsMappingOption customConverter(final String type); static FieldsMappingOption customConverter(final String type, final String parameter); static FieldsMappingOption customConverterId(final String id); static FieldsMappingOption customConverterId(final String id, final String parameter); static FieldsMappingOption useMapId(final String mapId); static FieldsMappingOption oneWay(); static FieldsMappingOption hintA(final Class<?>... type); static FieldsMappingOption hintB(final Class<?>... type); static FieldsMappingOption deepHintA(final Class<?>... type); static FieldsMappingOption deepHintB(final Class<?>... type); static FieldsMappingOption removeOrphans(); static FieldsMappingOption removeOrphans(final boolean removeOrphans); static FieldsMappingOption relationshipType(final RelationshipType relationshipType); static FieldsMappingOption collectionStrategy(final boolean removeOrphans, final RelationshipType relationshipType);  }
@Test public void testHintAandB() { DozerBuilder.FieldMappingBuilder mappingBuilder = mock(DozerBuilder.FieldMappingBuilder.class); FieldsMappingOption option = FieldsMappingOptions.hintA(String.class, Integer.class); option.apply(mappingBuilder); verify(mappingBuilder).srcHintContainer("java.lang.String,java.lang.Integer"); }