@Test
public void scanningWithExplicitName_should_haveThatName() {

    final Collection<FieldType> expected = Lists.<FieldType>newArrayList(
            new FieldTypeImpl(NAME, DataType.INTEGER, Optional.<TemplateValue>absent(), WithExplicitName.ID)
    );
    assertThat(scanner.scan(WithExplicitName.class), is(expected));
}