public void testSTSConfiguration() throws Exception {
ClassLoader tcl = Thread.currentThread().getContextClassLoader();
InputStream configStream = tcl.getResourceAsStream("parser/config/picketlink-sts.xml");
// parse the test configuration file.
STSConfigParser parser = new STSConfigParser();
STSType stsType = (STSType) parser.parse(configStream);
// check if the STS attributes have been correctly set, including the ones with default values.
assertEquals("PicketLinkSTS", stsType.getSTSName());
assertEquals(7200, stsType.getTokenTimeout());
assertEquals(1000, stsType.getClockSkew());