### Question:
LineAllotRule extends BaseAllotRule { public LineAllotRule(int capacity) { super(capacity); } LineAllotRule(int capacity);  LineAllotRule(); @Override Type getType(); static final int STEP; }### Answer:
@Test public void testLineAllotRule() throws Exception { LineAllotRule lineAllotRule = new LineAllotRule(100); Assert.assertEquals(lineAllotRule.getType(), BaseAllotRule.AllotType.LINE); Assert.assertEquals(lineAllotRule.getCapacity(), 100); lineAllotRule = new LineAllotRule(); Assert.assertEquals(lineAllotRule.getCapacity(), 10000000); }