Test - connecting java app with mongodb