@Test
  public void testResolveSingleTargets() throws QueryException, InterruptedException {
    ImmutableSet<QueryTarget> targets;
    ImmutableSet<QueryTarget> expectedTargets;

    targets = buckQueryEnvironment.getTargetsMatchingPattern("//example:six", executor);
    expectedTargets = ImmutableSortedSet.of(createQueryBuildTarget("//example", "six"));
    assertThat(targets, is(equalTo(expectedTargets)));

    targets = buckQueryEnvironment.getTargetsMatchingPattern("//example/app:seven", executor);
    expectedTargets = ImmutableSortedSet.of(createQueryBuildTarget("//example/app", "seven"));
    assertThat(targets, is(equalTo(expectedTargets)));
  }
 @Test
 public void testResolveTargetPattern() throws QueryException, InterruptedException {
   ImmutableSet<QueryTarget> expectedTargets =
       ImmutableSortedSet.of(
           createQueryBuildTarget("//example", "one"),
           createQueryBuildTarget("//example", "two"),
           createQueryBuildTarget("//example", "three"),
           createQueryBuildTarget("//example", "four"),
           createQueryBuildTarget("//example", "five"),
           createQueryBuildTarget("//example", "six"),
           createQueryBuildTarget("//example", "application-test-lib"),
           createQueryBuildTarget("//example", "one-tests"),
           createQueryBuildTarget("//example", "four-tests"),
           createQueryBuildTarget("//example", "four-application-tests"),
           createQueryBuildTarget("//example", "six-tests"));
   assertThat(
       buckQueryEnvironment.getTargetsMatchingPattern("//example:", executor),
       is(equalTo(expectedTargets)));
 }