@Test
public void test_unseal_successfully_http() {

    String jsonStr = "{  \"serverip\": \"localhost\",  \"port\": 8200,  \"key\": \"LwRw+j0I7L4ff4no50fduaF5OeTZJEOQFwdjWZcee0s=\",  \"reset\": true}";
    String jsonStr1 = "{  \"serverip\": \"localhost\",  \"port\": 8200,  \"key\": \"LwRw+j0I7L4ff4no50fduaF5OeTZJEOQFwdjWZcee0s=\",  \"reset\": true,\"port\":\"null\"}";
    Unseal unseal = new Unseal("localhost", "8200", "LwRw+j0I7L4ff4no50fduaF5OeTZJEOQFwdjWZcee0s=", true);
    Response response = getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, true, "{\"errors\": [ \"vault is unsealed\" ]}");
    Response responseOk = getMockResponse(HttpStatus.OK, true, "{\"messages\": [ \"vault is unsealed\" ]}");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("{\"messages\": [ \"vault is unsealed\" ]}");
    when(JSONUtil.getJSON(unseal)).thenReturn(jsonStr);
    when(reqProcessor.process("/unseal",jsonStr1,"")).thenReturn(response);
    when(reqProcessor.process("/v2/unseal",jsonStr1,"")).thenReturn(responseOk);
    ResponseEntity<String> responseEntity = sysService.unseal(unseal);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}