@Test
public void testTagProviderWithThread() throws Exception {

  ComponentTagProvider ctp = new ComponentTagProvider();
  Thread thread = new Thread(new Taggged(ctp));
  Thread thread2 = new Thread(new Taggged(ctp));
  Thread thread3 = new Thread(new Taggged(ctp));
  thread.start();
  thread2.start();
  thread3.start();
  ctp.getTag("comp1", "cid50");
  thread.join();
  thread2.join();
  thread3.join();
  Assert.assertEquals("101", ctp.getTag("comp1", "cid101"));
}