@Test
public void findVariantToSelectWithDebugVariant() {

  Variant debugVariant = mock(Variant.class);
  Variant releaseVariant = mock(Variant.class);
  when(myAndroidProject.getVariants()).thenReturn(Lists.newArrayList(debugVariant, releaseVariant));
  when(debugVariant.getName()).thenReturn("debug");
  when(releaseVariant.getName()).thenReturn("release");
  Variant variant = myVariantSelector.findVariantToSelect(myAndroidProject);
  assertSame(debugVariant, variant);
}