Sure, here’s a Java Maven project structure that includes the implementation of a `solution` function which multiplies two integers, along with test cases for this function. ### **pom.xml** ```xml 4.0.0 com.example solution 1.0-SNAPSHOT 1.8 1.8 junit junit 4.12 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 static org.junit.Assert.assertEquals; import org.junit.Test; public class SolutionTest { @Test public void testSolution() { Solution sol = new Solution(); assertEquals(0, sol.solution(0, 5)); assertEquals(-10, sol.solution(2, -5)); assertEquals(10, sol.solution(2, 5)); assertEquals(49, sol.solution(7, 7)); } } ``` ### **Compile** ```bash # Compile the code mvn compile ``` ### **Test** ```bash # Run the tests mvn test ``` This setup uses Maven to handle dependencies and build configurations. The provided commands will compile the code and run the specified tests, ensuring your function works as expected across different scenarios.