private void testRemove4(CtClass cc, String desc) throws Exception { CtConstructor c = cc.getConstructor(desc); cc.removeConstructor(c); try { CtConstructor c2 = cc.getConstructor(desc); fail("the removed method still exists"); } catch (NotFoundException e) { } }