public void noAccessToOtherConsumer() throws Exception {
Method method = FakeResource.class.getMethod(
"someConsumerOnlyMethod", String.class);
MockHttpRequest req = MockHttpRequest.create("GET",
"http://localhost/candlepin/status");
ResourceMethod rmethod = mock(ResourceMethod.class);
when(rmethod.getMethod()).thenReturn(method);
Class clazz = FakeResource.class;
when(rmethod.getResourceClass()).thenReturn(clazz);
Consumer c = createConsumer(createOwner());
Consumer c2 = createConsumer(createOwner());
methodInjector.setArguments(new Object[] {c2.getUuid()});
when(consumerCurator.getConsumer(eq(c.getUuid()))).thenReturn(c);