@Test public void ex1_CountKill() { when(observer.getLogLine()).thenReturn(EX1); test.onApplicationEvent(observer); MatchPlayers player = Utils.searchFor(EX1_RIGHT, match); assertNotNull(player); assertEquals(1, player.getKill()); }