### Question:
FlowRuleChecker { public boolean canPassCheck( FlowRule rule, Context context, DefaultNode node, int acquireCount) { return canPassCheck(rule, context, node, acquireCount, false); }  void checkFlow(Function<String, Collection<FlowRule>> ruleProvider, ResourceWrapper resource,
                          Context context, DefaultNode node, int count, boolean prioritized); boolean canPassCheck(/*@NonNull*/ FlowRule rule, Context context, DefaultNode node,
                                                    int acquireCount); boolean canPassCheck(/*@NonNull*/ FlowRule rule, Context context, DefaultNode node, int acquireCount,
                                                    boolean prioritized);  }### Answer:
@Test public void testPassCheckNullLimitApp() { FlowRule rule = new FlowRule("abc").setCount(1); rule.setLimitApp(null); FlowRuleChecker checker = new FlowRuleChecker(); assertTrue(checker.canPassCheck(rule, null, null, 1)); }
@Test public void testPassCheckSelectEmptyNodeSuccess() { FlowRule rule = new FlowRule("abc").setCount(1); rule.setLimitApp("abc"); DefaultNode node = mock(DefaultNode.class); Context context = mock(Context.class); when(context.getOrigin()).thenReturn("def"); FlowRuleChecker checker = new FlowRuleChecker(); assertTrue(checker.canPassCheck(rule, context, node, 1)); }