public class ServiceBusConfigurationTest {
@Test
public void ConfigureSetsExpectedProperties() {
// Arrange
Configuration config = new Configuration();
// Act
ServiceBusConfiguration.configureWithWrapAuthentication(config,
"alpha", "beta", "gamma", ".servicebus.windows.net/",
"-sb.accesscontrol.windows.net/WRAPv0.9");
// Assert
assertEquals("https://alpha.servicebus.windows.net/",
config.getProperty("serviceBus.uri"));
assertEquals("https://alpha-sb.accesscontrol.windows.net/WRAPv0.9",
config.getProperty("serviceBus.wrap.uri"));
assertEquals("beta", config.getProperty("serviceBus.wrap.name"));
assertEquals("gamma", config.getProperty("serviceBus.wrap.password"));
}