}
@Test
public void calculateOutputTest_refsOnly() {
MatchablePathElement pe1 = (MatchablePathElement) ShiftrSpec.parseSingleKeyLHS( "tuna-*-marlin-*" );
MatchablePathElement pe2 = (MatchablePathElement) ShiftrSpec.parseSingleKeyLHS( "rating-*" );
LiteralPathElement lpe = pe1.match( "tuna-marlin", new WalkedPath() );
AssertJUnit.assertNull( lpe );
lpe = pe1.match( "tuna-A-marlin-AAA", new WalkedPath() );
AssertJUnit.assertEquals( "tuna-A-marlin-AAA", lpe.getRawKey() );
AssertJUnit.assertEquals( "tuna-A-marlin-AAA", lpe.getSubKeyRef( 0 ) );
AssertJUnit.assertEquals( 3, lpe.getSubKeyCount() );
AssertJUnit.assertEquals( "A" , lpe.getSubKeyRef( 1 ) );
AssertJUnit.assertEquals( "AAA" , lpe.getSubKeyRef( 2 ) );
LiteralPathElement lpe2 = pe2.match( "rating-BBB", new WalkedPath( null, lpe ) );
AssertJUnit.assertEquals( "rating-BBB", lpe2.getRawKey() );
AssertJUnit.assertEquals( "rating-BBB", lpe2.getSubKeyRef( 0 ) );
AssertJUnit.assertEquals( 2, lpe2.getSubKeyCount() );
AssertJUnit.assertEquals( "BBB" , lpe2.getSubKeyRef( 1 ) );