@Test
public void testFlaggedNotification() {

    Game game = new Game(2, 2, 2, new TestBoardMiner(new boolean[][]{{false, false}, {true, true}}));
    openAt(0, 0, game);
    TrackingMinesListener listener = new TrackingMinesListener() {
        @Override
        public void onChange(final int flags, final int mines) {
            assertEquals(1, flags);
            assertEquals(2, mines);
            super.onChange(flags, mines);
        }
    };
    game.addListener(listener);
    flagAt(1, 1, game);
    assertEquals(0, listener.getStart());
    assertEquals(1, listener.getChange());
    assertEquals(0, listener.getDisarmed());
    assertEquals(0, listener.getBusted());
}