### Question:
AisBStaticDataReportPartB extends AbstractAisBStaticDataReport { @VisibleForTesting static int extractVendorUnitSerialNumber(AisExtractor extractor) { return extractor.getValue(70, 90); } AisBStaticDataReportPartB(String message, int padBits);  AisBStaticDataReportPartB(String message, String source, int padBits);  AisBStaticDataReportPartB(AisExtractorFactory factory, String message, String source,
            int padBits); @Override String toString(); int getShipType(); Optional<String> getCallsign(); Optional<Integer> getDimensionA(); Optional<Integer> getDimensionB(); Optional<Integer> getDimensionC(); Optional<Integer> getDimensionD(); Optional<Integer> getLengthMetres(); Optional<Integer> getWidthMetres(); String getVendorManufacturerId(); Integer getVendorUnitModelCode(); Integer getVendorUnitSerialNumber();  }### Answer:
@Test public void testVendorUnitSerialNumber() { final Integer vendorUnitSerialNumber = Integer.valueOf(123); AisExtractor ex = createMock(AisExtractor.class); expect(ex.getValue(anyInt(), anyInt())).andReturn(vendorUnitSerialNumber).atLeastOnce(); replay(ex); Integer result = AisBStaticDataReportPartB.extractVendorUnitSerialNumber(ex); assertEquals(vendorUnitSerialNumber, result); verify(ex); }