@Test
public void test_convertAppRoleSecretIdToLowerCase() throws IOException {

    String [] policies = {"default"};
    String jsonStr = "{\"role_name\":\"Approle1\",\"data\":{\"env\":\"dev\",\"appname\":\"appl\"}}";
    String jsonStrLowerCase =  "{\"role_name\":\"approle1\",\"data\":{\"env\":\"dev\",\"appname\":\"appl\"}}";
    AppRoleSecretData appRoleSecretData = new AppRoleSecretData("Approle1", new SecretData("dev", "appl"));
    when(JSONUtil.getObj(jsonStr, AppRoleSecretData.class)).thenReturn(appRoleSecretData);
    when(JSONUtil.getJSON(appRoleSecretData)).thenReturn(jsonStrLowerCase);
    String json = ControllerUtil.convertAppRoleSecretIdToLowerCase(jsonStr);
    assertEquals(jsonStrLowerCase, json);
}