it would have been good to test the java api