add test class for java cocurrency.