@Test
  public void successNotSetBoolean() {
    NotAnnotatedDocument doc = new NotAnnotatedDocument();

    initializer.initialize(doc);

    assertThat(doc.value, is(nullValue()));
  }
  @Test
  public void successfullySettingBoolean() {
    AnnotatedDocument doc = new AnnotatedDocument();

    initializer.initialize(doc);

    assertThat(doc.value, is(1));
  }
  @Test(expectedExceptions = RuntimeException.class)
  public void failsOnInitializeingFieldOfWrongType() {
    WronglyAnnotatedDocument doc = new WronglyAnnotatedDocument();

    initializer.initialize(doc);
  }