DiamondWhoosh implements RoboPainter, FireListener { void roundOver() { MoveEnemy duelEnemy = _moveDataManager.duelEnemy(); if (is1v1() && duelEnemy != null) { _surfMover.roundOver(duelEnemy); } } DiamondWhoosh(Diamond robot, OutputStream out);   DiamondWhoosh(Diamond robot, BattleField battleField,
      Collection<RoboGraphic> renderables, OutputStream out);   DiamondWhoosh(Diamond robot, BattleField battleField,
      MovementPredictor predictor, Collection<RoboGraphic> renderables,
      OutputStream out);  DiamondWhoosh(Diamond robot, MoveDataManager moveDataManager,
      MeleeMover meleeMover, SurfMover surfMover, BattleField battleField,
      Collection<RoboGraphic> renderables, OutputStream out); void initRound(Diamond robot); void execute(); void onScannedRobot(ScannedRobotEvent e); void onRobotDeath(RobotDeathEvent e); void onHitByBullet(HitByBulletEvent e); void onBulletHitBullet(BulletHitBulletEvent e); void onBulletHit(BulletHitEvent e); void onWin(WinEvent e); void onDeath(DeathEvent e); void onPaint(Graphics2D g); @Override void bulletFired(FiredBullet bullet); void paintOn(); void paintOff(); void robocodePaintOn(); void robocodePaintOff(); String paintLabel(); boolean paintStatus();  }
@Test public void testRoundOver1v1() { when(diamond.getOthers()).thenReturn(1); MoveEnemy duelEnemy = mock(MoveEnemy.class); when(moveDataManager.duelEnemy()).thenReturn(duelEnemy); DiamondWhoosh whoosh = newDiamondWhoosh(); whoosh.roundOver(); verify(surfMover).roundOver(duelEnemy); }