public static void setUpBeforeClass() throws Exception {
CoreConfiguration conf = ConfigurationFactory.getConfiguration(TEST_NAME);
new MongoClient(new MongoClientURI(conf.getDatabaseUrl())).getDB(TEST_NAME).dropDatabase();
dbc = new MongoConnector(conf);
ShutdownHandler shutdownHandler = Mockito.mock(ShutdownHandler.class);
Mockito.when(shutdownHandler.isShuttingDown()).thenReturn(false);
nm = new NodeMaster<MongoType>(conf, new CachingDocumentNIO<MongoType>(dbc, new NoopCache<MongoType>(), false), new Pipeline(), shutdownHandler);
if(!nm.isAlive()) {
nm.blockingStart();