### Question:
PrimusHeartBeatsHelper { public static boolean isHeartBeatsRequest(final String request) { return PRIMUS_PING_REGEX.matcher(request).find(); }  static boolean isHeartBeatsRequest(final String request); static void sendHeartBeatsResponse(final WebSocket webSocket); static final Pattern PRIMUS_PING_REGEX; }### Answer:
@Test public void shouldDetectValidPrimusPing() { assertThat(PrimusHeartBeatsHelper.isHeartBeatsRequest(VALID_PING_MESSAGE)).isTrue(); }
@Test public void shouldDetectInvalidPrimusPing() { assertThat(PrimusHeartBeatsHelper.isHeartBeatsRequest("primus:ping:11111111111")).isFalse(); assertThat(PrimusHeartBeatsHelper.isHeartBeatsRequest("primus:ping")).isFalse(); assertThat(PrimusHeartBeatsHelper.isHeartBeatsRequest("primus:pong:11111111111")).isFalse(); assertThat(PrimusHeartBeatsHelper.isHeartBeatsRequest("ping:11111111111")).isFalse(); }