GsonFactory { public static JsonParser getJsonParser() { return JSON_PARSER; }  static synchronized void registerTypeAdapter(final Type type, final TypeAdapter typeAdapter); static Gson getGson(); static JsonParser getJsonParser();  }
@Test public void assertGetJsonParser() { assertThat(GsonFactory.getJsonParser(), is(GsonFactory.getJsonParser())); }
@Test public void assertParser() { String json = "{\"name\":\"test\"}"; assertThat(GsonFactory.getJsonParser().parse(json).getAsJsonObject().get("name").getAsString(), is("test")); }
@Test(expected = JsonParseException.class) public void assertParserWithException() { String json = "{\"name\":\"test\""; assertThat(GsonFactory.getJsonParser().parse(json).getAsJsonObject().get("name").getAsString(), is("test")); }