1 package org.apache.commons.javaflow.bytecode.transformation;
2
3 import junit.framework.TestCase;
4
5 import org.apache.commons.javaflow.bytecode.transformation.rewrite.Simple;
6
7
8
9 public final class UsageTestCase extends TestCase {
10
11 public void testIncorrectUsageWithNormalClassLoader() throws Exception {
12 try {
13 final Runnable r = new Simple();
14 r.run();
15 fail();
16 } catch (final Exception e) {
17 assertTrue(e instanceof IllegalStateException);
18 }
19 }
20
21 }