@Test
public void testIgnoreNonPublicMethods() {

  ClassVisitor cv = mock(ClassVisitor.class);
  ServletContextAdapter sca = new ServletContextAdapter(cv);
  MethodVisitor result = sca.visitMethod(ACC_PROTECTED, "addListener", "(Ljava/lang/Object;)V", null, null);
  assertThat(result, not(instanceOf(EnahceAddListener.class)));
  result = sca.visitMethod(ACC_PRIVATE, "addListener", "(Ljava/util/EventListener;)V", null, null);
  assertThat(result, not(instanceOf(EnahceAddListener.class)));
  result = sca.visitMethod(ACC_STATIC | ACC_PUBLIC, "addListener", "(Ljava/util/EventListener;)V", null, null);
  assertThat(result, not(instanceOf(EnahceAddListener.class)));
}