@Test
public void verifySecondElementIsCocThirdElementIsCog()
{

    DimensionalItemId dimensionalItemId = new DimensionalItemId( DimensionItemType.DATA_ELEMENT_OPERAND, elem1,
        elem2, elem3 );
    CategoryOptionGroup categoryOptionGroup1 = createCategoryOptionGroup( 'A' );
    // #{DEUID.COCUID.COGUID}
    String exp = createIndicatorExp();
    when( expressionService.getExpressionDimensionalItemIds( exp, INDICATOR_EXPRESSION ) )
        .thenReturn( Sets.newHashSet( dimensionalItemId ) );
    when( categoryOptionGroupStore.getByUid( elem3 ) ).thenReturn( categoryOptionGroup1 );
    List<CategoryOptionCombo> cocs1 = beanRandomizer.randomObjects( CategoryOptionCombo.class, COCS_IN_COG );
    when( categoryOptionComboStore.getCategoryOptionCombosByGroupUid( categoryOptionGroup1.getUid() ) )
        .thenReturn( cocs1 );
    String expression = resolver.resolve( exp );
    // split resolved expression into a List of Strings
    List<String> expressionList = Arrays.asList( expression.split( "\\+" ) );
    assertEquals( COCS_IN_COG , expressionList.size() );
    collectionsHaveIdenticalValuesIgnoreOrder( expressionList, buildExpectedExpression( elem1, elem2, cocs1 ) );
}