### Question:
PossibleActionsRuleEngine { public EnumSet<PossibleActionEnum> getPossibleCsrActions(TokenInfo tokenInfo) { EnumSet<PossibleActionEnum> actions = EnumSet.noneOf(PossibleActionEnum.class); if (canDeleteCertOrCsr(tokenInfo, true, false)) { actions.add(PossibleActionEnum.DELETE); } return actions; }  EnumSet<PossibleActionEnum> getPossibleTokenActions(TokenInfo tokenInfo); boolean isKeyUnsupported(TokenInfo tokenInfo, KeyInfo keyInfo); EnumSet<PossibleActionEnum> getPossibleKeyActions(TokenInfo tokenInfo,
            KeyInfo keyInfo); EnumSet<PossibleActionEnum> getPossibleCertificateActions(TokenInfo tokenInfo,
            KeyInfo keyInfo,
            CertificateInfo certificateInfo); EnumSet<PossibleActionEnum> getPossibleCsrActions(TokenInfo tokenInfo); void requirePossibleAction(PossibleActionEnum action, EnumSet<PossibleActionEnum> possibleActions); void requirePossibleTokenAction(PossibleActionEnum action, TokenInfo tokenInfo); void requirePossibleKeyAction(PossibleActionEnum action, TokenInfo tokenInfo, KeyInfo keyInfo); void requirePossibleCertificateAction(PossibleActionEnum action, TokenInfo tokenInfo, KeyInfo keyInfo,
            CertificateInfo certificateInfo); void requirePossibleCsrAction(PossibleActionEnum action, TokenInfo tokenInfo, KeyInfo keyInfo,
            CertRequestInfo certRequestInfo); void requirePossibleAction(PossibleActionEnum action, ActionTargetType target,
            TokenInfo tokenInfo, KeyInfo keyInfo, CertificateInfo certificateInfo, CertRequestInfo certRequestInfo); static final String SOFTWARE_TOKEN_ID; }### Answer:
@Test public void getPossibleCsrActionDelete() { EnumSet<PossibleActionEnum> actions = possibleActionsRuleEngine.getPossibleCsrActions( new TokenInfoBuilder().build()); assertTrue(actions.contains(PossibleActionEnum.DELETE)); assertEquals(1, actions.size()); assertTrue(possibleActionsRuleEngine.getPossibleCsrActions( new TokenInfoBuilder().build()) .contains(PossibleActionEnum.DELETE)); }