resource.create(consumer, p, USER, owner.getKey(), null);
}
@Test
public void setStatusOnCreate() {
Principal p = new TrustedUserPrincipal("anyuser");
Consumer consumer = new Consumer();
consumer.setType(system);
consumer.setName("consumername");
resource.create(consumer, p, USER, owner.getKey(), null);
// Should be called with the consumer, null date (now),