@Test public void testStop() { // setup Vehicle vehicle = new Vehicle(); vehicle.setAngle(0); vehicle.setOwner("hoge"); vehicle.setSpeed(60); // execute vehicle.stop(); double actual = vehicle.getSpeed(); // test assertTrue(0.0 == actual); }