@Test
public void test_convertSafeAppRoleAccessToLowerCase() throws IOException {

    String [] policies = {"default"};
    String jsonStr = "{\"role_name\":\"Role1\", \"path\":\"users/safe01\", \"write\"}";
    String jsonStrLowerCase = "{\"role_name\":\"role1\", \"path\":\"users/safe01\", \"write\"}";
    SafeAppRoleAccess safeAppRoleAccess = new SafeAppRoleAccess("Role1", "users/safe01", "write");
    when(JSONUtil.getObj(jsonStr, SafeAppRoleAccess.class)).thenReturn(safeAppRoleAccess);
    when(JSONUtil.getJSON(safeAppRoleAccess)).thenReturn(jsonStrLowerCase);
    String json = ControllerUtil.convertSafeAppRoleAccessToLowerCase(jsonStr);
    assertEquals(jsonStrLowerCase, json);
}