### Question:
AutoFixManager { private boolean resourceCreatedBeforeCutoffData(final String resourceid, String resourceType) { try { return CommonUtils.resourceCreatedBeforeCutoffData(getResourceCreatedDate(resourceid, resourceType)); } catch (Exception e) { logger.error("error {}" , e); return true; } } AutoFixManager(); Map<String, Object> performAutoFixs(Map<String, String> ruleParam,
            Map<String, List<IssueException>> exemptedResourcesForRule,
            Map<String, IssueException> individuallyExcemptedIssues); static void main(String[] args);  }### Answer:
@Test public void resourceCreatedBeforeCutoffData() throws Exception { PowerMockito.mockStatic(CommonUtils.class); PowerMockito.when(CommonUtils.getPropValue(PacmanSdkConstants.RESOURCE_CREATIONDATE)).thenReturn("12/12/2017"); PowerMockito.when(CommonUtils.doHttpGet(anyString())).thenReturn("{\"data\":\"12-12-2017\"}"); final AutoFixManager classUnderTest = PowerMockito.spy(new AutoFixManager()); Whitebox.invokeMethod(classUnderTest, "resourceCreatedBeforeCutoffData", "resourceid", "resourceType"); }