@Test
public void testSystemCredentials() throws HttpException {

    assertEquals(JahiaLoginModule.SYSTEM,
            ((SimpleCredentials) JahiaLoginModule.getSystemCredentials()).getUserID());
    assertEquals(JahiaLoginModule.SYSTEM,
            ((SimpleCredentials) JahiaLoginModule.getSystemCredentials(null, (String) null)).getUserID());
    assertEquals(JahiaLoginModule.SYSTEM,
            ((SimpleCredentials) JahiaLoginModule.getSystemCredentials(null, null, null)).getUserID());
}