@Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Impossible.*")
public void invalidSyntax() throws InvalidSyntaxException {

    expect(context.getServiceReferences("org.jolokia.restrictor.Restrictor", null)).andThrow(new InvalidSyntaxException("", null));
    replay(context);
    restrictor.isHttpMethodAllowed(HttpMethod.GET);
}