@Test
public void testJsonBuild() {

    try {
        Attribute testAttribute = new Attribute(attrName, attrValue);
        JsonObject attrJson = testAttribute.toJsonObject();
        Assert.assertNotNull(attrJson);
        Assert.assertEquals(attrJson.getString("name"), attrName);
        Assert.assertEquals(attrJson.getString("value"), attrValue);
    } catch (Exception e) {
        Assert.fail("Unexpected Exception " + e.getMessage());
    }
}