@Test
public void findVariantToSelectWithoutDebugVariant() {

  Variant aVariant = mock(Variant.class);
  Variant bVariant = mock(Variant.class);
  when(myAndroidProject.getVariants()).thenReturn(Lists.newArrayList(bVariant, aVariant));
  when(aVariant.getName()).thenReturn("a");
  when(bVariant.getName()).thenReturn("b");
  Variant variant = myVariantSelector.findVariantToSelect(myAndroidProject);
  assertSame(aVariant, variant);
}