@Test
  public void testCreateTransactedSession() throws Exception {

    JMSContext context = jms2ConnectionFactory.createContext(JMSContext.SESSION_TRANSACTED);
    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 testCreateContextClientAckSession() throws Exception {

    JMSContext context = jms2ConnectionFactory.createContext(JMSContext.CLIENT_ACKNOWLEDGE);
    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 testCreateConnectionwithCredentials() throws Exception {
    final String username = "******";
    final String password = "******";

    Connection conn = jms2ConnectionFactory.createConnection(username, password);
    assertNotNull(conn);
    assertEquals(Jms2Connection.class, conn.getClass());
  }
  @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);
  }
 @Test
 public void testCreateConnection() throws Exception {
   Connection conn = jms2ConnectionFactory.createConnection();
   assertNotNull(conn);
   assertEquals(Jms2Connection.class, conn.getClass());
 }