Add fdb-java dependency to pom.xml
Port to new Java API.
Delete inappropriate test.