    @Test
    public void testVisitEndNop() throws Exception {

        adapter.visitCode();
        adapter.visitFrame(F_NEW, 0, EMPTY_OBJECTS, 0, EMPTY_OBJECTS);
        adapter.visitInsn(NOP);
        adapter.visitFrame(F_NEW, 0, EMPTY_OBJECTS, 0, EMPTY_OBJECTS);
        adapter.visitInsn(RETURN);
        adapter.visitMaxs(0, 0);
        adapter.visitEnd();

        InOrder inOrder = inOrder(mv);
        inOrder.verify(mv).visitCode();
        inOrder.verify(mv).visitFrame(F_NEW, 0, EMPTY_OBJECTS, 0, EMPTY_OBJECTS);
        inOrder.verify(mv).visitInsn(NOP);
        inOrder.verify(mv).visitFrame(F_NEW, 0, EMPTY_OBJECTS, 0, EMPTY_OBJECTS);
        inOrder.verify(mv).visitInsn(RETURN);
        inOrder.verify(mv).visitMaxs(0, 0);
        inOrder.verify(mv).visitEnd();
        verifyNoMoreInteractions(mv);
    }