private void assertContextProperty(ContextProperty cp) {
   Assert.assertNotNull(cp);
   Assert.assertEquals("foo", cp.getName());
   Assert.assertSame(Scope.EXCHANGE, cp.getScope());
   Assert.assertEquals("bar", cp.getValue());
   Set<String> labels = cp.getLabels();
   Assert.assertEquals(2, labels.size());
   Assert.assertTrue(labels.contains("baz"));
   Assert.assertTrue(labels.contains("whiz"));
   Assert.assertFalse(labels.contains("beep"));
 }
 private ContextProperty buildContextProperty() {
   ContextProperty cp = new ContextProperty("foo", Scope.EXCHANGE, "bar");
   cp.addLabels("baz", "whiz");
   return cp;
 }