public class AMQPlainSaslServerTest extends SaslServerTestCase
{
protected void setUp() throws Exception
{
UsernamePasswordInitialiser handler = new AmqPlainInitialiser();
handler.initialise(db);
this.server = new AmqPlainSaslServer(handler.getCallbackHandler());
FieldTable table = FieldTableFactory.newFieldTable();
table.setString("LOGIN", username);
table.setString("PASSWORD", password);
correctResponse = table.getDataAsBytes();