@Test
public void testSavePolicies() {

    DecisionPolicy mockDecision = Mockito.mock(component.getClass());
    Map<String, String> successMap = new HashMap<>();
    successMap.put("success", "success");
    try {
        when(mockDecision.savePolicies()).thenReturn(successMap);
        successMap = mockDecision.savePolicies();
    } catch (Exception e) {
        e.printStackTrace();
    }
    assertEquals(successMap.get("success"), "success");
}