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", ((CPUTF8)layout.getValue(0, segment.getConstantPool())).underlyingString());
assertEquals("One", ((CPUTF8)layout.getValue(1, segment.getConstantPool())).underlyingString());
}