### Question:
Salary { public long calculateYearSalary() { return this.monthSalary * 12 + bonus; } Salary(int monthSalary, int bonus); long calculateYearSalary();  }### Answer:
@Test public void calculateYearSalary() { Salary salary = new Salary(10_000, 20_000); assertEquals(salary.calculateYearSalary(), 140_000); }
@Test public void calculateYearSalary2() { Salary salary = new Salary(10_000, 20_000); assertEquals(salary.calculateYearSalary(), 140_000); }