/** * Tests the presence of certain annotations and converter key in a given Converter class * * @param clazz PatterConverter class to test * @param key Converter key to match */ private void testPatternAnnotation(Class<? extends AccessLogPatternConverter> clazz, String key) { assertTrue(clazz.isAnnotationPresent(Plugin.class)); assertTrue(clazz.isAnnotationPresent(ConverterKeys.class)); assertEquals(key, clazz.getAnnotation(ConverterKeys.class).value()[0]); }