@Test
public void testSimpleLookoutClient() throws Exception {

    LookoutRegistry lookoutRegistry = new LookoutRegistry(new LookoutConfig());
    SimpleLookoutClient client = new SimpleLookoutClient("demo", lookoutRegistry);
    //test addCommonTags
    client.addCommonTags(new BasicTag("k", "v"));
    Assert.assertEquals("v", lookoutRegistry.getCommonTagValue("k"));
    //test addDefaultCommonTags
    Assert.assertEquals("demo", lookoutRegistry.getCommonTagValue("app"));
    //test use same config
    Assert.assertSame(client.getLookoutConfig(), lookoutRegistry.getConfig());
    //test get Registry
    Assert.assertSame(lookoutRegistry, ((CompositeRegistry) client.getRegistry())
        .getRegistries().iterator().next());
    client.close();
}