## **pom.xml** ```xml 4.0.0 com.example solution 1.0-SNAPSHOT 17 17 junit junit 4.13.2 test ``` ## **src/main/java/com/example/solution/Solution.java** ```java package com.example.solution; public class Solution { public int solution(int a, int b) { return a * b; } } ``` ## **src/test/java/com/example/solution/SolutionTest.java** ```java package com.example.solution; import org.junit.Test; import static org.junit.Assert.*; public class SolutionTest { @Test public void testPositiveNumbers() { Solution solution = new Solution(); int result = solution.solution(5, 3); assertEquals(15, result); } @Test public void testNegativeNumbers() { Solution solution = new Solution(); int result = solution.solution(-2, -4); assertEquals(8, result); } @Test public void testZeroMultiplication() { Solution solution = new Solution(); int result = solution.solution(7, 0); assertEquals(0, result); } } ``` ## **Compile** ```bash mvn compile ``` ## **Test** ```bash mvn test ```