@Test
public void invokeWithException() throws Exception {

	Handler handler = createHandler("getWithThrow");
	WebResponse response = invoker.invoke(mock(WebRequest.class), new MatchResult(true, ImmutableMap.of()),
			handler);
	assertEquals(500, response.getResponseCode());
	assertEquals("{\"errorCode\":\"NullPointerException\",\"message\":\"test\"}", response.getEntity());
	verify(logger).log(eq(Level.SEVERE), eq("test"), any(NullPointerException.class));
	verifyNoMoreInteractions(logger);
}