@Test
public void scanningWithExplicitTemplate_should_haveTheTemplate() {

    assertThat(
            scanner.scan(WithExplicitTemplate.class),
            contains(
                    (FieldType) new FieldTypeImpl(
                            "NAME",
                            DataType.VARCHAR,
                            Optional.<TemplateValue>of(new StringTemplateValue("some template")),
                            WithExplicitTemplate.NAME)
            )
    );
}