### Question:
NmeaUtil { public static String getChecksum(String sentence) { return getChecksum(sentence, true); } private  NmeaUtil(); static boolean isValid(String sentence); static String getChecksum(String sentence); static String getChecksum(String sentence, boolean ignoreLeadingDollarOrExclamation); static NmeaMessage parseNmea(String line); static String insertKeyValueInTagBlock(String line, String name, String value); static String supplementWithTime(String line, long arrivalTime); static Talker getTalker(String s); static String createTagBlock(LinkedHashMap<String, String> tags); static String createNmeaLine(LinkedHashMap<String, String> tags, List<String> items);  }### Answer:
@Test public void testChecksumNoLeadingDollar() { assertEquals(CHECKSUM, NmeaUtil.getChecksum(MESSAGE)); }
@Test public void testChecksumLeadingDollar() { assertEquals(CHECKSUM, NmeaUtil.getChecksum(DOLLAR + MESSAGE)); }
@Test public void testChecksumLeadingExclamation() { assertEquals(CHECKSUM, NmeaUtil.getChecksum(EXCLAMATION_POINT + MESSAGE)); }
@Test public void testChecksumTwoLineMessage() { assertEquals(CHECKSUM2, NmeaUtil.getChecksum(MESSAGE2A + MESSAGE2B, false)); }