@Test
public void testGsonParserError() throws JsonSyntaxException {

    this.expectedEx.expect(JsonSyntaxException.class);
    this.expectedEx.expectMessage("Expected BEGIN_OBJECT but was STRING");
    JsonMapper jsonMapper = new JsonMapper();
    jsonMapper.fromJson("TEST", ExampleServiceState.class);
}