Add maven plugin and Finish the JUnit test