resource.create(consumer, p, USER, owner.getKey(), createKeysString(keys));
}
@Test(expected = BadRequestException.class)
public void failIfOnlyActivationKeyDoesNotExistForOrg() {
Principal p = new NoAuthPrincipal();
List<String> keys = new ArrayList<String>();
keys.add("NoSuchKey");
Consumer consumer = new Consumer("sys.example.com", null, null, system);
resource.create(consumer, p, null, owner.getKey(), createKeysString(keys));
}