@Test public void testSum() 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; assertEquals(sum, checkService.getSum(car, days)); }