String className = "test.inner.ComponentWithInnerClasses";
manipulate(className, manipulator);
assertThat(manipulator.getInnerClasses().size()).isEqualTo(3);
Element manipulation = manipulator.getManipulationMetadata();
System.out.println(manipulation);
Element[] inners = manipulation.getElements("inner");
assertThat(inners.length).isEqualTo(3);
Element inner = getInnerClassMetadataByName(inners, "MyInnerWithANativeMethod");
assertThat(inner).isNotNull();
assertThat(getMethodByName(inner.getElements("method"), "foo")).isNotNull();
inner = getInnerClassMetadataByName(inners, "MyInnerClass");
assertThat(inner).isNotNull();
assertThat(getMethodByName(inner.getElements("method"), "foo")).isNotNull();
inner = getInnerClassMetadataByName(inners, "1");
assertThat(inner).isNotNull();
assertThat(getMethodByName(inner.getElements("method"), "compute")).isNotNull();
}