testing mongodb handling in java