@Test
public void givenIgnoringAField_whenSerializingWithCustomSerializer_thenFieldIgnored() {
final SourceClass sourceObject = new SourceClass(7, "seven");
final GsonBuilder gsonBuildr = new GsonBuilder();
gsonBuildr.registerTypeAdapter(SourceClass.class, new IgnoringFieldsSerializer());
final String jsonString = gsonBuildr.create().toJson(sourceObject);
final String expectedResult = "{\"intValue\":7}";
assertEquals(expectedResult, jsonString);
}