@Test
public void testAnnotationOnMethodWithCustomName() throws Exception {

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