inputStream = new ByteArrayInputStream(testObject.toString().getBytes());
EasyMock.expect(boxResponse.getHttpResponse()).andReturn(response);
EasyMock.expect(response.getEntity()).andReturn(entity);
EasyMock.expect(entity.getContent()).andReturn(inputStream);
EasyMock.replay(boxResponse, response, entity);
DefaultBoxJSONResponseParser parser = new DefaultBoxJSONResponseParser(TestObject.class, new BoxJSONParser(new BoxResourceHub()));
Object object = parser.parse(boxResponse);
Assert.assertEquals(TestObject.class, object.getClass());
TestObject tObject = (TestObject) object;
Assert.assertEquals(fieldA, tObject.getFieldAWithAnnotation());
Assert.assertEquals(fieldB, tObject.getFieldB());