public class RESTServerTest {
@Test
public void testBlockingStart() throws IOException, InterruptedException {
CoreConfiguration conf = ConfigurationFactory.getConfiguration("jUnit-RESTServerTest");
MongoConnector dbc = new MongoConnector(conf);
int port = conf.getRestPort();
RESTServer server1 = new RESTServer(conf, new HttpRESTHandler<MongoType>(dbc));
if(!server1.blockingStart()) {
server1 = RESTServer.getNewStartedRESTServer(port, new HttpRESTHandler<MongoType>(dbc));
}