@Test(expected = NullPointerException.class)
public void templateWithNull_should_fail() {

    final FieldDef fd = someFd().template((String) null);
    // should already have failed!
    assertThat(fd, Matchers.is(nullValue()));
}