Given the following UML diagram for the Calculator class, an…
Given the following UML diagram for the Calculator class, and the implementation of the add() and sub() methods, implement two JUnit test cases to test the functionality of the add() and sub() methods. Use the appropriate JUnit annotations and include multiple test cases to verify different scenarios for each method. public static int add(int a, int b) { return a + b; }public static int sub(int a, int b) { return a – b; }