Adding example functional test in Java.

Adding a two-node functional test using the Java API. The test is based
on node1simulation.m and node2simulation.m in the matlab-files
directory.