@Test
public void testParseVersionName() throws Exception {

  assertEquals("/a/b", KeyProvider.getBaseName("/a/b@3"));
  assertEquals("/aaa", KeyProvider.getBaseName("/aaa@112"));
  try {
    KeyProvider.getBaseName("no-slashes");
    assertTrue("should have thrown", false);
  } catch (IOException e) {
    assertTrue(true);
  }
}