@Test public void doesNotApplyToNonNullValue() throws Exception { final boolean result = NullSerializer.INSTANCE.applies("foo"); assertThat(result, is(false)); }
@Test public void serializesNullAsString() throws Exception { final String result = NullSerializer.INSTANCE.serialize(null); assertThat(result, is("null")); }
@Test public void appliesToNullValue() throws Exception { final boolean result = NullSerializer.INSTANCE.applies(null); assertThat(result, is(true)); }