@Test
  public void testCreateTransactedSession() throws Exception {

    JMSContext context = jms2ConnectionFactory.createContext(JMSContext.SESSION_TRANSACTED);
    assertNotNull(context);
    assertEquals(Jms2Context.class, context.getClass());
  }
  @Test
  public void testCreateContextClientAckSession() throws Exception {

    JMSContext context = jms2ConnectionFactory.createContext(JMSContext.CLIENT_ACKNOWLEDGE);
    assertNotNull(context);
    assertEquals(Jms2Context.class, context.getClass());
  }
  @Test
  public void createContext() throws Exception {

    JMSContext context = jms2ConnectionFactory.createContext();
    assertNotNull(context);
    assertEquals(Jms2Context.class, context.getClass());
  }
  @Test
  public void testCreateContextCredentialsAndTransactedSession() throws Exception {
    final String username = "******";
    final String password = "******";

    JMSContext context =
        jms2ConnectionFactory.createContext(username, password, JMSContext.SESSION_TRANSACTED);
    assertNotNull(context);
  }
  @Test
  public void testCreateContextWithCredentials() throws Exception {

    final String username = "******";
    final String password = "******";

    JMSContext context = jms2ConnectionFactory.createContext(username, password);
    assertNotNull(context);
  }
  @Test
  public void testCreateContextCredentialsAndClientAckSession() throws Exception {
    final String username = "******";
    final String password = "******";

    JMSContext context =
        jms2ConnectionFactory.createContext(username, password, JMSContext.CLIENT_ACKNOWLEDGE);
    assertNotNull(context);
    assertEquals(Jms2Context.class, context.getClass());
  }
  @Test
  public void testCreateContext() throws Exception {

    JMSContext context = jms2ConnectionFactory.createContext();
    assertNotNull(context);
  }