### Question:
AisExtractor { public synchronized int getValue(int from, int to) { try { SixBit.convertSixBitToBits(message, padBits, bitSet, calculated, from, to); return (int) SixBit.getValue(from, to, bitSet); } catch (SixBitException | ArrayIndexOutOfBoundsException e) { throw new AisParseException(e); } } AisExtractor(String message, Integer minLength, int padBits); int getMessageId(); synchronized int getValue(int from, int to); synchronized int getSignedValue(int from, int to); synchronized String getString(int from, int to);  }### Answer:
@Test(expected = AisParseException.class) public void testArrayIndexOutOfBoundsThrowsAisParseException() { String m = "1G72VO0335bPmqcabrJan7rl0000"; assertEquals(1, new AisExtractor(m, 0, 0).getValue(1000, 1005)); }