TransformedInspection { public Inspection getTransformedInspection() { return transformedInspection; } TransformedInspection(Inspection inspection); private  TransformedInspection(Class<?> originalClass, String newClassName, Inspection serverInspection); byte[] toBytecode(); NamedAsset toShrinkWrapAsset(); Class<?> getTransformedClass(); Inspection getTransformedInspection(); Class<?> getOriginalClass();  }
@Test public void testAnonymousClass() throws Exception { Inspection inspection = getAnonymousServerInspection(); TransformedInspection transformedInspection = new TransformedInspection(inspection); Object modifiedInspection = transformedInspection.getTransformedInspection(); verifyServerInspectionClass(modifiedInspection); }
@Test public void testInnerClass() throws Exception { Inspection inspection = new InnerInspection(); TransformedInspection transformedInspection = new TransformedInspection(inspection); Object modifiedInspection = transformedInspection.getTransformedInspection(); verifyServerInspectionClass(modifiedInspection); }
@Test public void testInnerClassWithArgsConstructor() throws Exception { Inspection inspection = new InnerWithArgsInspection("Test"); TransformedInspection transformedInspection = new TransformedInspection(inspection); Object modifiedInspection = transformedInspection.getTransformedInspection(); verifyServerInspectionClass(modifiedInspection); }
@Test public void testInnerClassWithArgsConstructorInheritance() throws Exception { Inspection inspection = new InnerWithArgsInheritedInspection("Test"); TransformedInspection transformedInspection = new TransformedInspection(inspection); Object modifiedInspection = transformedInspection.getTransformedInspection(); verifyServerInspectionClass(modifiedInspection); }