Test java hash table