@Test
public void testNumericAttr() {

  @SuppressWarnings("unused")
  class Clazz extends AttrComposite {
    AttrInteger attrInteger =
        attributes.register("attrInteger", AttrInteger.builder().defaultValue(42));
    AttrDouble attrDouble =
        attributes.register("attrDouble", AttrDouble.builder().defaultValue(42.5));
  }
  ClassInfoCollector collector = new ClassInfoCollector(JvmNameMapper.INSTANCE);
  ClassInfo classInfo = collector.collect(new Clazz());
  Assertions.assertThat(classInfo.attributes)
      .hasEntrySatisfying("attrInteger", info -> Assertions.assertThat(info.value).isEqualTo(42))
      .hasEntrySatisfying(
          "attrDouble", info -> Assertions.assertThat(info.value).isEqualTo(42.5));
}