### Question:
AisExtractor { public synchronized String getString(int from, int to) { try { SixBit.convertSixBitToBits(message, padBits, bitSet, calculated, from, to); return SixBit.getString(from, to, bitSet); } catch (SixBitException 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 testStringNotLongEnoughThrowsAisParseExceptionUsingGetString() { String m = ""; AisExtractor ex = new AisExtractor(m, 10, 0); ex.getString(1, 2); }