public void testHsqldbIntegerKeyGenerator() throws Exception
{
Context ctx = new InitialContext();
IntegerPKLocalHome home = (IntegerPKLocalHome) ctx.lookup("java:comp/env/local/TestHsqldbIntegerEJB");
UnknownPKLocal ejb1 = home.create("testHsqldbIntegerKeyGenerator");
UnknownPKLocal ejb2 = home.create("testHsqldbIntegerKeyGenerator");
try
{
Integer key = (Integer) ejb1.getPrimaryKey();
UnknownPKLocal ejb1a = home.findByPrimaryKey(key);
assertTrue(ejb1.isIdentical(ejb1a));