Enhancer.getMethodInterceptor(ser) instanceof TestInterceptor );
((Factory)ser).getCallback(Callbacks.INTERCEPT) instanceof TestInterceptor );
    public void testSerializable() throws Throwable {        String testValue = "test";                Source source =  (Source)Enhancer.enhance(            Source.class,            new Class []{} , new TestInterceptor(testValue),            this.getClass().getClassLoader(),            Enhancer.InternalReplace.class.getMethod("writeReplace",new Class[]{Object.class})        );                        ByteArrayOutputStream bout = new ByteArrayOutputStream();        ObjectOutputStream    out  = new ObjectOutputStream( bout );                out.writeObject( source );                ObjectInputStream in = new ObjectInputStream(        new ByteArrayInputStream(bout.toByteArray()) );                Object ser = in.readObject();                assertTrue("type",  ser instanceof Source );        assertTrue("interceptor",        Enhancer.getMethodInterceptor(ser) instanceof TestInterceptor );                TestInterceptor interceptor = (TestInterceptor)Enhancer.getMethodInterceptor(ser);                assertEquals("testValue", testValue, interceptor.getValue()  );    }