### Question:
EnumToNameCollectionMapper extends CollectionMapper<E, String> { public abstract Class<E> getEnumClass(); EnumToNameCollectionMapper(); abstract Class<E> getEnumClass();  }### Answer:
@Test public void shouldMapEnumCollectionToString_withStubEnum() { final Set<StubEnum> enumSet = randomEnumSet(StubEnum.class); final EnumToNameCollectionMapper<StubEnum> collectionMapper = new EnumToNameCollectionMapperStub(); final Collection<String> enumNames = collectionMapper.map(enumSet); assertEquals(StubEnum.class, collectionMapper.getEnumClass()); assertEquals(enumSet.size(), enumNames.size()); for (final StubEnum stubEnum : enumSet) { enumNames.contains(stubEnum.name()); } }