@Test public void testPrePassivate() throws Exception { TestDescriptorImpl provider = new TestDescriptorImpl("test"); InterceptorType<TestDescriptorImpl> type = new InterceptorTypeImpl<TestDescriptorImpl>( provider, "interceptorType", provider.getRootNode()); type.prePassivate().up(); type.prePassivate().up(); assertTrue(type.getPrePassivateList().size() == 2); type.removeAllPrePassivate(); assertTrue(type.getPrePassivateList().size() == 0); }