public void testWithNonSingletonAspectInstance() throws Exception {
new AssertThrows(IllegalArgumentException.class) {
public void test() throws Exception {
AspectJProxyFactory pf = new AspectJProxyFactory();
pf.addAspect(new PerThisAspect());
}
}.runTest();
}