@Test
public void test_getAppRoleObjFromString_failure() throws IOException {

    String [] policies = {"default"};
    String jsonStr = "{\"role_names\":\"role1\",\"policies\":[\"default\"],\"bind_secret_id\":true,\"secret_id_num_uses\":\"1\",\"secret_id_ttl\":\"100m\",\"token_num_uses\":0,\"token_ttl\":null,\"token_max_ttl\":null}";
    when(JSONUtil.getObj(jsonStr, AppRole.class)).thenThrow(Exception.class);
    AppRole appRoleActual = ControllerUtil.getAppRoleObjFromString(jsonStr);
    assertEquals(null, appRoleActual);
}