source: class ExperimentsTest {
  
      private ExperimentsStore store;
      private ExperimentsCache cache;
      private Experiments experiments;
  
      @Test
      public void testGetActiveTreatments() {
  
target:         final Experiment experiment = mock(Experiment.class);
          final Identity identity = mock(Identity.class);
          doReturn(FilterExpression.alwaysTrue()).when(experiment).getFilter();
          doReturn(AttributesMap.empty()).when(identity).computeAttributes();
          doReturn(ImmutableMap.of("foo", experiment))
              .when(cache)
              .getActiveExperiments();
          experiments.getActiveTreatments(identity);
          verifyZeroInteractions(store);
          verify(cache).getActiveExperiments();
      }
  
  }