### Question:
NMEA { public static final boolean isNMEAOrAIS(CharSequence seq) { if (seq.charAt(0) != '$' && seq.charAt(0) != '!') { return false; } NMEAChecksum checkSum = new NMEAChecksum(); checkSum.update(seq); String suffix = checkSum.getSuffix(); return CharSequences.endsWith(seq, suffix); }  static final CharSequence getPrefix(CharSequence seq); static final CharSequence findMessage(CharSequence seq); static final TalkerId getTalkerId(CharSequence seq); static final MessageType getMessageType(CharSequence seq); static final boolean isProprietory(CharSequence seq); static final boolean isNMEA(CharSequence seq); static final boolean isAIS(CharSequence seq); static final boolean isNMEAOrAIS(CharSequence seq);  }### Answer:
@Test public void testIsNMEAOrAIS() { assertTrue(NMEA.isNMEAOrAIS("$GPBWC,010003,1248.4128,S,03827.6978,W,338.4,T,1.5,M,0.314,N,BA01,A*61\r\n")); assertTrue(NMEA.isNMEAOrAIS("!AIVDM,1,1,,A,13HOI:0P0000VOHLCnHQKwvL05Ip,0*23\r\n")); assertTrue(NMEA.isNMEAOrAIS("$GPVTG,277.3,T,281.7,M,0.0,N,0.1,K,D*2A\r\n")); }