source: class ElasticsearchNativeServiceImplTest  {
  
    private static final Logger logger;
    private static final String elasticsearchTmpDir;
    private static final String ricOne;
    private static final String ricTwo;
    private static final String ricThree;
    private static final String ricFour;
    private static final String ricFive;
    private static final Ticker T1;
    private static final Ticker T2;
    private static final Ticker T3;
    private static final Ticker T4;
    private static final Ticker T5;
    @InjectMocks
    private ElasticsearchNativeServiceImpl service;
    @Mock
    private InfrastructureProperties infrastructureProperties;
    private final DomainObjectGenerator rdogOne;
    private final DomainObjectGenerator rdogTwo;
    private final ObjectMapper json;
    private static Client elasticsearch;
    private static Node node;
    private static final Integer elasticsearchNativePort;
    private static final Integer elasticsearchRestPort;
    private static final String elasticsearchCluster;
    private static final String elasticsearchHost;
    private static final String indexForTickers;
    private static final String typeForTickers;
    private static final String indexForTicks;
    private static final String typeForTicks;
    private static final String indexForIndicators;
    private static final String typeForIndicators;
    private static final String indexForStrategies;
    private static final String typeForStrategies;
    private boolean initialised;
  
    @Test
    public void testFindIndicatorsByTickerAndNameAndDateGreaterThan() throws Exception {
  
target:     int number = 7;
      int expected = 7;
      final String nameOne = "indicator-one";
      final String nameTwo = "indicator-two";
      logger.info("given {} {} {} indicators and {} {} {} indicators",
          number, ricOne, nameOne, number, ricOne, nameTwo);
      populateElasticsearch(rdogOne, number, indexForIndicators, typeForIndicators, nameOne, IndicatorJson.class);
      long midpoint = OffsetDateTime.now().toInstant().toEpochMilli();
      populateElasticsearch(rdogOne, number, indexForIndicators, typeForIndicators, nameTwo, IndicatorJson.class);
      logger.info("it should return only {} {} {} indicators after the midpoint", expected, nameOne, ricOne);
      List<IndicatorJson> result = service.findIndicatorsByRicAndNameAndDateGreaterThan(ricOne, nameOne, midpoint);
      logger.info(" *** findIndicatorsByTickerAndNameAndDateGreaterThan({}, {}, {}): {}, expected: {}",
          ricOne, nameOne, midpoint, result.size(), expected);
      assertThat(result).hasSize(expected);
    }
  
  }