@Test
public void testMonitor() throws Throwable {
JamonMonitorFactory monitorFactory = new JamonMonitorFactory();
RepositoryPerformanceMonitor performanceMonitor = new RepositoryPerformanceMonitor(monitorFactory);
Signature signature = EasyMock.createMock(Signature.class);
ProceedingJoinPoint targetMethod = EasyMock.createMock(ProceedingJoinPoint.class);
EasyMock.expect(targetMethod.getSignature()).andReturn(signature);
EasyMock.expect(signature.getDeclaringType()).andReturn(Object.class);
EasyMock.expect(signature.getName()).andReturn("hashCode");
EasyMock.expect(targetMethod.proceed()).andReturn(new Object());
EasyMock.replay(signature, targetMethod);
performanceMonitor.monitor(targetMethod);
EasyMock.verify(signature, targetMethod);