@Test
public void givenUsingCustomDeserializer_whenFieldNotMatchesCriteria_thenIgnored() {
final SourceClass sourceObject = new SourceClass(-1, "minus 1");
final GsonBuilder gsonBuildr = new GsonBuilder();
gsonBuildr.registerTypeAdapter(SourceClass.class, new IgnoringFieldsNotMatchingCriteriaSerializer());
final Gson gson = gsonBuildr.create();
final Type sourceObjectType = new TypeToken<SourceClass>() {
}.getType();
final String jsonString = gson.toJson(sourceObject, sourceObjectType);