}
@Test
public void acknowledgeEnumTest()
{
AcknowledgeMode ackMode = AcknowledgeMode.getAckMode( null );
assertEquals( AcknowledgeMode.AUTO_ACKNOWLEDGE, ackMode );
assertEquals( Session.AUTO_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
ackMode = AcknowledgeMode.getAckMode( "bajja" );
assertEquals( Session.AUTO_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
ackMode = AcknowledgeMode.getAckMode( "-100" );
assertEquals( Session.AUTO_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
ackMode = AcknowledgeMode.getAckMode( "CLIENT_ACKNOWLEDGE" );
assertEquals( AcknowledgeMode.CLIENT_ACKNOWLEDGE, ackMode );
assertEquals( Session.CLIENT_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
ackMode = AcknowledgeMode.getAckMode( "DUPS_OK_ACKNOWLEDGE" );
assertEquals( AcknowledgeMode.DUPS_OK_ACKNOWLEDGE, ackMode );
assertEquals( Session.DUPS_OK_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
}