@Test
public void testGetApiLevelByVersion() throws IOException {

    SourceOrigins origins = SourceOriginsLoader.load();
    ApiLevel api = origins.getApiLevelByVersion(new Version("2.3.1"));
    Assert.assertThat("version 2.3.1 -> ApiLevel", api, notNullValue());
    Assert.assertThat("version 2.3.1 -> ApiLevel.version", api.getVersion(), is(new Version("2.3")));
    Assert.assertThat("version 2.3.1 -> ApiLevel.level", api.getLevel(), is("9"));
    Assert.assertThat("version 2.3.1 -> ApiLevel.codename", api.getCodename(), is("gingerbread"));
}