FourDigitNumber extends BaseSlotValue { public int getNumber() { return number; } FourDigitNumber(com.amazon.ask.model.Slot slot, int first, int second, int third, int fourth); int[] getDigits(); int getFirstDigit(); int getSecondDigit(); int getThirdDigit(); int getFourthDigit(); int getNumber(); String stringValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testNumber() { assertEquals(9999, new FourDigitNumber(mockSlot, 9, 9, 9, 9).getNumber()); assertEquals(999, new FourDigitNumber(mockSlot, 0, 9, 9, 9).getNumber()); assertEquals(99, new FourDigitNumber(mockSlot, 0, 0, 9, 9).getNumber()); assertEquals(9, new FourDigitNumber(mockSlot, 0, 0, 0, 9).getNumber()); assertEquals(1111, new FourDigitNumber(mockSlot, 1, 1, 1, 1).getNumber()); assertEquals(111, new FourDigitNumber(mockSlot, 0, 1, 1, 1).getNumber()); assertEquals(11, new FourDigitNumber(mockSlot, 0, 0, 1, 1).getNumber()); assertEquals(1, new FourDigitNumber(mockSlot, 0, 0, 0, 1).getNumber()); assertEquals(0, new FourDigitNumber(mockSlot, 0, 0, 0, 0).getNumber()); }