### Question:
Communications { @VisibleForTesting static Integer getSlotNumber(AisExtractor extractor, int slotTimeout, int startIndex) { if (slotTimeout == 2 || slotTimeout == 4 || slotTimeout == 6) return extractor.getValue(startIndex + 5, startIndex + 19); else return null; } Communications(AisExtractor extractor, int startIndex); int getSyncState(); int getSlotTimeout(); Integer getReceivedStations(); Integer getSlotNumber(); Integer getHourUtc(); Integer getMinuteUtc(); Integer getMinutesUtc(); Integer getSlotOffset(); @Override String toString();  }### Answer:
@Test public void testGetSlotNumberTimeoutOther() { AisExtractor ex = createMock(AisExtractor.class); replay(ex); assertNull(Communications.getSlotNumber(ex, 3, 10)); verify(ex); }