### Question:
LRStateList extends ArrayList<LRState> { public int getInitialState() { return initialState; } LRStateList(int size); int getInitialState(); void setInitialState(int initialState);  }### Answer:
@Test public void testConstructorWithSizing() { LRStateList states = new LRStateList(5); assertEquals("wrong number of placeholders", 5, states.size()); for (int i = 0; i < states.size(); i++) { assertNull(states.get(i)); } assertEquals("initial state", 0, states.getInitialState()); }