@Test
  public void filterTestOrders_shouldNotFilterByConcept() throws Exception {
    Map<String, Encounter> encounterTestOrderUuidMap = new HashMap<>();
    EncounterTransaction.Order order1 =
        createOrder("uuid1", "concept1", Order.Action.NEW.toString(), null);
    when(encounterTransaction.getOrders()).thenReturn(Arrays.asList(order1));

    List<EncounterTransaction.Order> orders =
        labOrderResultsServiceImpl.filterTestOrders(
            encounterTransaction, encounter, encounterTestOrderUuidMap, null);

    assertEquals(1, orders.size());
  }
  @Test
  public void filterTestOrders_EvenWhenTheyAreDiscontinued() throws Exception {
    List<String> concepts = Arrays.asList("concept1", "concept2", "concept3");
    Map<String, Encounter> encounterTestOrderUuidMap = new HashMap<>();
    EncounterTransaction.Order order1 =
        createOrder("uuid1", "concept1", Order.Action.NEW.toString(), null);
    EncounterTransaction.Order order2 =
        createOrder("uuid2", "concept2", Order.Action.REVISE.toString(), null);
    EncounterTransaction.Order order3 =
        createOrder("uuid3", "concept3", Order.Action.NEW.toString(), new Date());
    when(encounterTransaction.getOrders()).thenReturn(Arrays.asList(order1, order2, order3));

    List<EncounterTransaction.Order> orders =
        labOrderResultsServiceImpl.filterTestOrders(
            encounterTransaction, encounter, encounterTestOrderUuidMap, concepts);

    assertEquals(3, orders.size());
  }