### Question:
PolicyRulesEvaluator extends AbstractEvaluator<PolicyRules, InfrastructureAdaptor, MetricReadingProvider> { @Override public synchronized void evaluate(MetricReadingProvider provider) { routeReadingToEvaluators(provider); } PolicyRulesEvaluator(final PolicyRules rules,
                                final InfrastructureAdaptor adaptor); @Override synchronized void evaluate(MetricReadingProvider provider);  }### Answer:
@Test public void testAllNullNoExceptionThrown() { System.out.println("testAllNullNoExceptionThrown"); try { PolicyRulesEvaluator evaluator = new PolicyRulesEvaluator(null, null); evaluator.evaluate(null); } catch(Exception e) { fail("No excetion should be thrown by PolicyRulesEvaluator"); } }
@Test public void testEvaluateNoRulesWithoutWildcard() { System.out.println("testEvaluateNoRulesWithoutWildcard"); InfrastructureAdaptor mockAdaptor = mock(InfrastructureAdaptor.class); MetricReadingProvider mockProvider = mock(MetricReadingProvider.class); PolicyRules fakeRules = new PolicyRules() {}; try { PolicyRulesEvaluator evaluator = new PolicyRulesEvaluator(fakeRules, mockAdaptor); evaluator.evaluate(mockProvider); } catch(Exception e) { fail("No excetion should be thrown by PolicyRulesEvaluator"); } }