### Question:
OncePerMessageLoggingFilter implements LoggingFilter { @Override public synchronized boolean canLog(String msg) { if (filtering && messagesLogged.contains(msg)) { return false; } messagesLogged.add(msg); return true; }  synchronized OncePerMessageLoggingFilter setFiltering(boolean value); synchronized OncePerMessageLoggingFilter resetLogHistory(); @Override synchronized boolean canLog(String msg);  }### Answer:
@Test public void verifyCanLogReturnsTrueForRepeatedMessageWithoutFiltering() { final String message = "some log message"; OncePerMessageLoggingFilter loggingFilter = new OncePerMessageLoggingFilter(); assertThat(loggingFilter.canLog(message), is(true)); assertThat(loggingFilter.canLog(message), is(true)); }