public void must_not_have_parameters() throws Exception {
ClassTransformation ct = mockClassTransformation();
TransformMethodSignature sig = new TransformMethodSignature(Modifier.PUBLIC, "java.lang.Object", "getFoo", new String[] { "boolean" }, new String[0]);
expect(ct.findMethodsWithAnnotation(Cached.class)).andReturn(Arrays.asList(sig));
replay();
try {
new CachedWorker(null).transform(ct, null);
fail("did not throw");