import org.apache.harmony.pack200.IcTuple;
public class ICTupleTest extends TestCase {
public void testPredictedClassTupleParsing() {
IcTuple tuple = new IcTuple();
tuple.C = "orw/SimpleHelloWorld$SimpleHelloWorldInner";
tuple.C2 = null;
tuple.F = 0;
tuple.N = null;
assertEquals("SimpleHelloWorldInner", tuple.simpleClassName());
assertEquals("orw/SimpleHelloWorld", tuple.outerClassString());
tuple = new IcTuple();
tuple.C = "java/util/AbstractList$2$Local";
tuple.C2 = null;
tuple.F = 0;
tuple.N = null;
assertEquals("Local", tuple.simpleClassName());
assertEquals("java/util/AbstractList$2", tuple.outerClassString());
tuple = new IcTuple();
tuple.C = "java/util/AbstractList#2#Local";
tuple.C2 = null;
tuple.F = 0;
tuple.N = null;
assertEquals("Local", tuple.simpleClassName());
assertEquals("java/util/AbstractList$2", tuple.outerClassString());
tuple = new IcTuple();
tuple.C = "java/util/AbstractList$1";
tuple.C2 = null;
tuple.F = 0;
tuple.N = null;
assertEquals("1", tuple.simpleClassName());
assertEquals("java/util/AbstractList", tuple.outerClassString());
}