}
@SuppressWarnings({"rawtypes", "unchecked"})
@Test
public void testLoadChildCategories() {
CategoryItem categoryItem = mock( CategoryItem.class );
when( rulesRepository.loadCategory( "categorypath" ) ).thenReturn( categoryItem );
List childTags = new ArrayList();
CategoryItem categoryItemNode = mock( CategoryItem.class );
childTags.add( categoryItemNode );
when( categoryItemNode.getName() ).thenReturn( "categoryNodeName" );
when( categoryItem.getChildTags() ).thenReturn( childTags );
assertArrayEquals( repositoryCategoryOperations.loadChildCategories( "categorypath" ),
new String[]{"categoryNodeName"} );
}