Java samples

I removed the testng code because it's exactly copy-pasta.