StartupLogWatcherImpl implements StartupLogWatcher { static StartupLogWatcherImpl create() { return new StartupLogWatcherImpl("Process[ce] is up"); } private  StartupLogWatcherImpl(String startupExpectedMessage); @Override boolean isStarted(String logLine);  }
@Test public void create() { StartupLogWatcherImpl underTest = StartupLogWatcherImpl.create(); assertThat(underTest.isStarted("foo")).isFalse(); assertThat(underTest.isStarted("Process[web] is up")).isFalse(); assertThat(underTest.isStarted("Process[ce] is up")).isTrue(); }