### Question:
AISMessageGen { public static NMEASentence[] msg5(CacheEntry entry) { return new Bldr(StaticAndVoyageRelatedData, entry.getProperties()) .integer(2, "aisVersion", 0) .integer(30, "imoNumber") .string(42, "callSign") .string(120, "vesselName") .integer(8, CodesForShipType.class, "shipType", CodesForShipType.NotAvailableDefault) .dimensions() .integer(4, EPFDFixTypes.class, "epfd", EPFDFixTypes.UndefinedDefault) .integer(4, "etaMonth", 0) .integer(5, "etaDay", 0) .integer(5, "etaHour", 24) .integer(6, "etaMinute", 60) .decimal(8, 10, "draught") .string(120, "destination") .bool("dte", true) .spare(1) .build(); }  static NMEASentence[] msg1(CacheEntry entry); static NMEASentence[] msg1(CacheEntry entry, int second, double latitude, double longitude); static NMEASentence[] msg5(CacheEntry entry); static NMEASentence[] msg8AreaNoticeCircle(
            int mmsi,
            int linkage,
            AreaNoticeDescription notice,
            ZonedDateTime date,
            Duration duration,
            Location location,
            int radius
    ); static NMEASentence[] msg18(CacheEntry entry); static NMEASentence[] msg18(CacheEntry entry, int second, double latitude, double longitude); static NMEASentence[] msg24A(CacheEntry entry); static NMEASentence[] msg24B(CacheEntry entry);  }### Answer:
@Test public void testMsg5() throws IOException { NMEASentence[] msg5 = AISMessageGen.msg5(cache.getEntry("230123250")); NMEAParser parser = NMEAParser.newInstance(); TC tc = new TC(); parser.parse(msg5[0].toString()+msg5[1].toString(), null, tc); assertEquals(230123250, tc.mmsi); assertEquals(0, tc.aisVersion); assertEquals(123456789, tc.imoNumber); assertEquals("OJ3231", tc.callSign); assertEquals("IIRIS", tc.shipname); assertEquals(Sailing, tc.shipType); assertEquals(12, tc.dimensionToBow); assertEquals(0, tc.dimensionToStern); assertEquals(4, tc.dimensionToPort); assertEquals(0, tc.dimensionToStarboard); assertEquals(GPS, tc.epfd); assertEquals(11, tc.eta_month); assertEquals(4, tc.eta_day); assertEquals(11, tc.eta_hour); assertEquals(12, tc.eta_minute); assertEquals(1.7, tc.draught, 1e-3); assertEquals("NUKU HIVA", tc.destination); assertEquals(false, tc.dte); }