@Test
public void test_singleUserDefinedXmlConfiguration() {

    final Collection<Credentials> credsCollection = XmlCredentialsUtil.getCredentials(getClass().getClassLoader().getResource("singleUserDefinedXmlConfiguration.xml"), "org", "org.url", "user", "password", "token", "org.api");
    final Credentials[] creds = credsCollection.toArray(new Credentials[0]);
    Assert.assertEquals("Should have 1 element", 1, creds.length);
    Assert.assertEquals("Should be same url", "http://theurl", creds[0].getUrl());
    Assert.assertEquals("Should be same user name", "theuser", creds[0].getUserName());
    Assert.assertEquals("Should be same user name", "the password", creds[0].getPassword());
    Assert.assertEquals("Should be same user name", "the token", creds[0].getToken());
    Assert.assertEquals("Should be same user name", "30.0", creds[0].getApiVersion());
}