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