public void test() {
InputStream is = getClass().getResourceAsStream("/session_token.xml");
SessionCredentials expected = expected();
SessionCredentialsHandler handler = injector.getInstance(SessionCredentialsHandler.class);
SessionCredentials result = factory.create(handler).parse(is);
assertEquals(result, expected);
assertEquals(result.getAccessKeyId(), expected.getAccessKeyId());
assertEquals(result.getSecretAccessKey(), expected.getSecretAccessKey());