@Test
public void testFindAllByCategoryId() {

    Long cid = setupTestFindAllByCategoryId();
    List<CategoryAttribute> attrs = attributeBaseDomainService.findAllByCategoryId(cid);
    attrs.stream().map(CategoryAttribute::getAttrValsJson).forEach(System.out::println);
    assertThat(attrs.stream().map(CategoryAttribute::getAttrKey).collect(Collectors.toList()))
            .isNotEmpty()
            .hasSize(5)
            .containsExactly("同名属性-2", "三级类目属性", "二级类目属性", "同名属性", "一级类目属性");
}