Ported Python tests to Java

I've created a java subdirectory within sample-code which contains Maven projects for both JUnit and TestNG.