@Test
public void testCredentialsFromHeader() throws Exception {
CredentialsFromRequestHeaderFilterConfig config = new CredentialsFromRequestHeaderFilterConfig();
config.setClassName(GeoServerCredentialsFromRequestHeaderFilter.class.getName());
config.setUserNameHeaderName("X-Credentials");
config.setPasswordHeaderName("X-Credentials");
config.setUserNameRegex("private-user=([^&]*)");
config.setPasswordRegex("private-pw=([^&]*)");
config.setParseAsUriComponents(true);
config.setName(testFilterName10);
getSecurityManager().saveFilter(config);
prepareFilterChain(pattern,
testFilterName10);
modifyChain(pattern, false, true,null);