@Test
  public void testConnection() throws Exception {

    ObjectConnection conn = factory.createConnectionFactory().getConnection();
    Map<?, ?> m = conn.getMap(RemoteInfinispanTestHelper.CACHE_NAME);

    assertNotNull(m);

    Class<?> t = conn.getType(RemoteInfinispanTestHelper.CACHE_NAME);

    assertEquals(String.class, t);
  }
  @Test
  public void testConnection() throws Exception {

    ObjectConnection conn = factory.createConnectionFactory().getConnection();
    Class<?> clz = conn.getCacheClassType();

    assertEquals(Trade.class, clz);

    Class<?> t = conn.getCacheKeyClassType();

    assertEquals(long.class, t);

    assertEquals("longValue", conn.getPkField());

    conn.cleanUp();
  }
  /**
   * {@inheritDoc}
   *
   * @see org.teiid.translator.ExecutionFactory#initCapabilities(java.lang.Object)
   */
  @Override
  public void initCapabilities(ObjectConnection connection) throws TranslatorException {
    super.initCapabilities(connection);
    if (connection == null) return;

    String version = connection.getVersion();

    if (version != null) {
      if (version.compareTo(JDG6_6) < 0) {
        // any version prior to JDG 6.6 the supportCompareCritiaOrdered needs to be set to false;
      } else {
        this.supportsCompareCriteriaOrdered = true;
      }
    }
  }