public void testResolvesToDateTimeWhenAnnotated() throws Exception {
ParameterResolver resolver = testSubject.createInstance(new Annotation[0],
DateTime.class,
new Annotation[]{annotation});
final EventMessage<Object> message = GenericEventMessage.asEventMessage("test");
assertTrue(resolver.matches(message));
assertEquals(message.getTimestamp(), resolver.resolveParameterValue(message));
}
@Test
public void testIgnoredWhenNotAnnotated() throws Exception {