@Test
public void testHandleRequest__InvalidField() {

  Request request = createNiceMock(Request.class);
  ResourceInstance resource = createNiceMock(ResourceInstance.class);
  Query query = createStrictMock(Query.class);
  Map<String, TemporalInfo> mapPartialResponseFields = new HashMap<String, TemporalInfo>();
  mapPartialResponseFields.put("foo/bar", null);
  Renderer renderer = new DefaultRenderer();
  expect(request.getResource()).andReturn(resource);
  expect(request.getFields()).andReturn(mapPartialResponseFields);
  expect(request.getRenderer()).andReturn(renderer);
  expect(resource.getQuery()).andReturn(query);
  query.setPageRequest(null);
  query.setSortRequest(null);
  query.setRenderer(renderer);
  query.addProperty("foo/bar", null);
  expectLastCall().andThrow(new IllegalArgumentException("testMsg"));
  replay(request, resource, query);
  ReadHandler handler = new ReadHandler();
  Result result = handler.handleRequest(request);
  assertEquals(ResultStatus.STATUS.BAD_REQUEST, result.getStatus().getStatus());
  assertEquals("testMsg", result.getStatus().getMessage());
  verify(request, resource, query);
}