@Test
public void scanningAClassWithPropertyDefs_should_extractThosePropertyDefs() {

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