### Question:
NmeaMessageExactEarthTimestamp { @VisibleForTesting static boolean isPghp(String line) { if (line == null) return false; else return pghpPattern.matcher(line).matches(); } NmeaMessageExactEarthTimestamp(String line); static boolean isExactEarthTimestamp(String line); long getTime(); String getFollowingSequenceChecksum();  }### Answer:
@Test public void testIsPghpLineIsFalseGivenNull() { assertFalse(isPghp(null)); }
@Test public void testIsPghpLineIsFalseGivenBlank() { assertFalse(isPghp("")); }
@Test public void testIsPghpLineIsFalseGivenNonBlankString() { assertFalse(isPghp("abcde")); }
@Test public void testIsPghpLineIsTrueWhenHasTagBlock() { assertTrue(isPghp("\\hello\\$PGHP")); }
@Test public void testIsPghpLineIsTrueWhenHasNoTagBlock() { assertTrue(isPghp("$PGHP,boo")); }
@Test public void testIsPghpLineIsTrueWhenHasPghpNotAtBeginning() { assertFalse(isPghp("hi$PGHP,boo")); }