@Test
public void testAnnotationOnClass() throws Exception {

    when(ctx.getExtensionMethod()).thenReturn(new ExtensionMethod(Bar.class, Bar.class.getMethod("update")));
    assertThat(timedAnnotationNameStrategy.getStatementName(ctx))
            .isEqualTo("com.codahale.metrics.jdbi3.strategies.TimedAnnotationNameStrategyTest$Bar.update");
}