@Test
public void testOmitNullWithNonNullInputs() {

    final OmitNullTestClass object = new OmitNullTestClass("foo", "bar", 1, 1);
    final String actual = B2Json.toJsonOrThrowRuntime(object);
    // All the fields should be in the output
    assertEquals("{\n" +
            "  \"omitNullInteger\": 1,\n" +
            "  \"omitNullString\": \"foo\",\n" +
            "  \"regularInteger\": 1,\n" +
            "  \"regularString\": \"bar\"\n" +
            "}", actual);
}