assertTrue(!throwsException("name",AttributeLayout.CONTEXT_CODE,""));
assertTrue(throwsException("name",-1,""));
assertTrue(throwsException("name",1234,""));
}
public void testLayoutRU() throws Pack200Exception {
AttributeLayout layout = new AttributeLayout("RU",AttributeLayout.CONTEXT_CLASS,"RU", 1);
Segment segment = new TestSegment();
assertNull(layout.getValue(-1, segment.getConstantPool()));
assertEquals("Zero",layout.getValue(0, segment.getConstantPool()));
assertEquals("One",layout.getValue(1, segment.getConstantPool()));
}