@Test
public void getConnectionForFullyQualifiedHookName() throws Exception {

    expect(mockContext.lookup(eq("java:env/db/book"))).andReturn(
            mockDataSource);
    expect(mockDataSource.getConnection()).andReturn(mockConnection);
    EasyMockUnitils.replay();
    final Connection connection = factory.getConnection("java:env/db/book");
    assertSame("Unexpected connection returned",
            mockConnection, connection);
}