### Question:
AisExtractor { public int getMessageId() { return getValue(0, 6); } 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 public void testExtractorGetsMessageId() { String m = "1G72VO0335bPmqcabrJan7rl0000"; assertEquals(1, new AisExtractor(m, 0, 0).getMessageId()); }