@Test(expected = NullPointerException.class)
public void shouldThrowNullPointerWhenSerializingNullUsingCustomBooleanFormat() throws Exception {

    newToTest().serialize(null, charset, new ByteArrayOutputStream());
}