Calculator: public class Calculator { public double add(double number1, double number2) { return number1+number2; } } CalculatorTest: import org.junit.Test; import static org.junit.Assert.assertEquals; public class CalculatorTest { @Test public void…