@@ -0,0 +1,2096 @@
+package okapi;%0A%0Aimport com.jayway.restassured.RestAssured;%0Aimport com.jayway.restassured.response.Response;%0Aimport guru.nidi.ramltester.RamlDefinition;%0Aimport guru.nidi.ramltester.RamlLoaders;%0Aimport guru.nidi.ramltester.restassured.RestAssuredClient;%0Aimport io.vertx.core.Vertx;%0Aimport io.vertx.core.logging.Logger;%0Aimport io.vertx.core.logging.LoggerFactory;%0Aimport io.vertx.ext.unit.Async;%0Aimport io.vertx.ext.unit.TestContext;%0Aimport io.vertx.ext.unit.junit.VertxUnitRunner;%0Aimport org.folio.okapi.MainCluster;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0A@RunWith(VertxUnitRunner.class)%0Apublic class MainClusterTest %7B%0A%0A  private final Logger logger = LoggerFactory.getLogger(%22okapi%22);%0A  private final int port = Integer.parseInt(System.getProperty(%22port%22, %229130%22));%0A  Async async;%0A  Vertx vertx;%0A%0A  public MainClusterTest() %7B%0A  %7D%0A%0A  @BeforeClass%0A  public static void setUpClass() %7B%0A  %7D%0A%0A  @AfterClass%0A  public static void tearDownClass() %7B%0A  %7D%0A%0A  @Before%0A  public void setUp(TestContext context) %7B%0A    async = context.async();%0A%0A    RestAssured.port = port;%0A    String%5B%5D args = %7B%22dev%22%7D;%0A%0A    MainCluster.main1(args, res -%3E %7B%0A      vertx = res.result();%0A      Assert.assertTrue(%22main1: %22 + res.cause(), res.succeeded());%0A      async.complete();%0A    %7D);%0A  %7D%0A%0A  @After%0A  public void tearDown(TestContext context) %7B%0A    async = context.async();%0A    if (vertx != null) %7B%0A      vertx.close(x -%3E %7B%0A        async.complete();%0A      %7D);%0A    %7D else %7B%0A      async.complete();%0A    %7D%0A  %7D%0A%0A  @Test%0A  public void testVersion(TestContext context) %7B%0A    async = context.async();%0A%0A    RamlDefinition api = RamlLoaders.fromFile(%22src/main/raml%22).load(%22okapi.raml%22);%0A%0A    RestAssuredClient c;%0A    Response r;%0A%0A    c = api.createRestAssured();%0A    r = c.given().get(%22/_/version%22).then().statusCode(200).log().ifError().extract().response();%0A%0A    Assert.assertTrue(%22raml: %22 + c.getLastReport().toString(),%0A      c.getLastReport().isEmpty());%0A    async.complete();%0A  %7D%0A%0A%7D%0A

Add test using MainCluster class for better coverage