ArgumentServices { void checkClass(Object object, Class cls) throws JsonUnmarshallingException { if (!cls.isInstance(object)) { throw new JsonUnmarshallingException(object + " is not instance of " + cls); } }  List<String> getJsonParameters(Object[] parameters, Annotation[][] annotationss); IJsonMarshaller getIJsonMarshallerInstance(Class<? extends IJsonMarshaller> cls); String getJsonResultFromSpecificMarshaller(JsonMarshaller jm, Object result); String getJsonResultFromSpecificMarshallerIterable(Iterable list, IJsonMarshaller marshaller); List getJavaResultFromSpecificUnmarshallerIterable(String json, IJsonMarshaller marshaller); Map getJavaResultFromSpecificUnmarshallerMap(String json, IJsonMarshaller marshaller); void checkType(Object object, Type paramType);  }
@Test public void testCheckClass() throws JsonUnmarshallingException { System.out.println("checkClass"); instance.checkClass(mock(Result.class), Result.class); }
@Test(expected = JsonUnmarshallingException.class) public void testCheckClassFail() throws JsonUnmarshallingException { System.out.println("checkClass"); instance.checkClass(mock(Result.class), String.class); }