### Question:
AutoFixManager { private boolean isAccountWhiteListedForAutoFix(String account, String ruleId) { try { String whitelistStr = CommonUtils .getPropValue(PacmanSdkConstants.AUTOFIX_WHITELIST_ACCOUNTS_PREFIX + ruleId); List<String> whitelist = Arrays.asList(whitelistStr.split("\\s*,\\s*")); return whitelist.contains(account); } catch (Exception e) { logger.error("account is assumed whitelisted for autofix for ruleId {} and {} and {}" ,account, ruleId,e); return Boolean.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 isAccountWhiteListedForAutoFix() throws Exception { PowerMockito.mockStatic(CommonUtils.class); PowerMockito.when(CommonUtils.getPropValue(anyString())).thenCallRealMethod(); final AutoFixManager classUnderTest = PowerMockito.spy(new AutoFixManager()); Whitebox.invokeMethod(classUnderTest, "isAccountWhiteListedForAutoFix", "account", "ruleId"); }