예제 #1
0
  @Test
  public void doesNotApplyToNonNullValue() throws Exception {
    final boolean result = NullSerializer.INSTANCE.applies("foo");

    assertThat(result, is(false));
  }
예제 #2
0
  @Test
  public void appliesToNullValue() throws Exception {
    final boolean result = NullSerializer.INSTANCE.applies(null);

    assertThat(result, is(true));
  }