Assert.assertEquals(FeedHelper.normalizePartitionExpression(null, null), "");
}
@Test
public void testEvaluateExpression() throws Exception {
Cluster cluster = new Cluster();
cluster.setName("name");
cluster.setColo("colo");
cluster.setProperties(new Properties());
Property prop = new Property();
prop.setName("pname");
prop.setValue("pvalue");
cluster.getProperties().getProperties().add(prop);
Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "${cluster.colo}/*/US"), "colo/*/US");
Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "${cluster.name}/*/${cluster.pname}"), "name/*/pvalue");
Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "IN"), "IN");
}