@Test public void testSumIncludingDriver() throws Exception { Car car = new Car(1, "model", 2000, 5, true, 1, 2, 3, 1, 2, 1, 2, "path"); int days = 1; int sum = car.getPrice() * days + 200; assertEquals(sum, checkService.getSumWithDriver(car, days)); }