How do you write a JUnit test case?

How do you write a JUnit test case?

To write the test case package, go to com.javatpoint.testcase; After that you need to import static org.junit. Assert.;import com.javatpoint.logic.; Then import org.junit.Test;public class TestLogic {@Test.public void testFindMax(){assertEquals(4,Calculation.findMax(new int{1,3,4,2}));