@Test
public void testRecordException() throws Exception {

	final MonitoredRequest monitoredRequest = createMonitoredRequest();
	doThrow(new RuntimeException("test")).when(monitoredRequest).execute();
	try {
		requestMonitor.monitor(monitoredRequest);
	} catch (Exception e) {
	}
	assertEquals("java.lang.RuntimeException", tags.get("exception.class"));
	assertEquals("test", tags.get("exception.message"));
	assertNotNull(tags.get("exception.stack_trace"));
}