@Test
public void testDisarmedNotification() {

    openAt(0, 0, itsGame2by1);
    TrackingMinesListener listener = new TrackingMinesListener() {
        @Override
        public void onDisarmed() {
            // Ensure that change is called before disarmed.
            assertEquals(1, getChange());
            super.onDisarmed();
        }
    };
    itsGame2by1.addListener(listener);
    flagAt(1, 0, itsGame2by1);
    assertEquals(1, listener.getChange());
    assertEquals(1, listener.getDisarmed());
    assertEquals(0, listener.getBusted());
    assertEquals(0, listener.getStart());
}