assertEquals(ra.getSecurityPermissions().get(0).getSecurityPermissionSpec(), "sa");
}
private void assertOutboundAdapter(OutboundRaMetaData outboundRa) {
assertNotNull(outboundRa.getConDefs());
ConnectionDefinitionMetaData conDef = outboundRa.getConDefs().get(0);
assertTrue(conDef.getManagedConnectionFactoryClass().endsWith("JmsManagedConnectionFactory"));
assertEquals(conDef.getConfigProps().size(), 7);
assertEquals(conDef.getConfigProps().get(6).getName(), "UseTryLock");
assertTrue(conDef.getConnectionFactoryInterfaceClass().endsWith("JmsConnectionFactory"));
assertTrue(conDef.getConnectionFactoryImplementationClass().endsWith("JmsConnectionFactoryImpl"));
assertTrue(conDef.getConnectionInterfaceClass().endsWith("Session"));
assertTrue(conDef.getConnectionImplementationClass().endsWith("JmsSession"));
assertEquals(outboundRa.getTransSupport(), TransactionSupportMetaData.XATransaction);
assertNotNull(outboundRa.getAuthMechanisms().get(0));
assertEquals(outboundRa.getAuthMechanisms().get(0).getAuthenticationMechanismType(), "BasicPassword");
assertTrue(outboundRa.getAuthMechanisms().get(0).getCredentialInterfaceClass().endsWith("PasswordCredential"));
assertEquals(outboundRa.getAuthMechanisms().get(0).getId(), "amid");