@Test
public void testParseVariableName() {

	String[][] values = {
			{ "facet", "variable" },
			{ "FacetName", "complex.variable.name" },
			{ "facet-Name", "" },
			{ "", "some_variable" }
	};
	for( String[] value : values ) {
		String s = value[ 0 ] + "." + value[ 1 ];
		Map.Entry<String,String> entry = VariableHelpers.parseVariableName( s );
		Assert.assertEquals( "Invalid component or facet name for " + s, value[ 0 ], entry.getKey());
		Assert.assertEquals( "Invalid simple name for " + s, value[ 1 ], entry.getValue());
	}
	Map.Entry<String,String> entry = VariableHelpers.parseVariableName( "noPrefix" );
	Assert.assertEquals( "noPrefix", entry.getValue());
	Assert.assertEquals( "", entry.getKey());
}