public String ofClass(Class<?> clazz) {
    return clazz.getClassLoader() + "-" + clazz.getCanonicalName();
  }
@Test
  public void generate_key_of_class() {
    assertThat(keys.ofClass(FakeComponent.class)).endsWith("-org.sonar.core.platform.ComponentKeysTest.FakeComponent");
  }