@@ -0,0 +1,618 @@
+package org.folio.okapi.common;%0A%0Aimport io.vertx.core.json.JsonObject;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0Aimport java.util.Base64;%0A%0Apublic class OkapiTokenTest %7B%0A%0A  @Test%0A  public void test() %7B%0A    OkapiToken t = new OkapiToken();%0A%0A    JsonObject o = new JsonObject();%0A    o.put(%22tenant%22, %22test-lib%22);%0A    o.put(%22foo%22, %22bar%22);%0A    String s = o.encodePrettily();%0A    byte%5B%5D encodedBytes = Base64.getEncoder().encode(s.getBytes());%0A    String e = new String(encodedBytes);%0A    String tokenStr = %22method.%22 + e + %22.trail%22;%0A    t.setToken(tokenStr);%0A    assertEquals(%22test-lib%22, t.getTenant());%0A  %7D%0A%7D%0A

Add OkapiTokenTest