@Override
  @Nonnull
  public List<Sdk> selectSdks(Configuration configuration, UsesSdk usesSdk) {
    Config config = configuration.get(Config.class);
    Set<Sdk> sdks = new TreeSet<>(configuredSdks(config, usesSdk));
    if (enabledSdks != null) {
      sdks = Sets.intersection(sdks, enabledSdks);
    }
    return Lists.newArrayList(sdks);
  }
@Test
  public void withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
      throws Exception {
    when(usesSdk.getTargetSdkVersion()).thenReturn(22);
    when(usesSdk.getMinSdkVersion()).thenReturn(1);
    when(usesSdk.getMaxSdkVersion()).thenReturn(22);
    assertThat(
            sdkPicker.selectSdks(
                buildConfig(new Config.Builder().setSdk(Config.ALL_SDKS)), usesSdk))
        .containsExactly(
            sdkCollection.getSdk(16),
            sdkCollection.getSdk(17),
            sdkCollection.getSdk(18),
            sdkCollection.getSdk(19),
            sdkCollection.getSdk(21),
            sdkCollection.getSdk(22));
  }