@Test
public void testAttributes() {

    final AttributesMap attributes = computeAttributes();
    assertEquals(Sets.newHashSet("foo", "bar", "baz"), attributes.keySet());
    assertTrue(attributes.getBoolean("foo"));
    assertFalse(attributes.getBoolean("bar"));
    assertEquals(Long.valueOf(1), attributes.getNumber("baz"));
    assertNull(attributes.getNumber("quux"));
}