@Test
public void securityHoleWithAuth() throws Exception {
Method method = FakeResource.class.getMethod("annotatedMethod", String.class);
MockHttpRequest req = MockHttpRequest.create("GET",
"http://localhost/candlepin/status");
req.header("Authorization", "BASIC QWxhZGRpbjpvcGVuIHNlc2FtZQ==");
ResourceMethod rmethod = mock(ResourceMethod.class);
when(rmethod.getMethod()).thenReturn(method);
Class clazz = FakeResource.class;
when(rmethod.getResourceClass()).thenReturn(clazz);