@Test
public void testAddClassName() {

  LegacyAllocationConverter converter = new LegacyAllocationConverter();
  int id = converter.addClassName(CLASS_NAME);
  assertThat(converter.addClassName(CLASS_NAME)).isEqualTo(id);
  List<AllocatedClass> classes = converter.getClassNames();
  assertThat(classes.size()).isEqualTo(1);
  assertThat(classes.get(0).getClassName()).isEqualTo(CLASS_NAME);
  assertThat(classes.get(0).getClassId()).isEqualTo(id);
}