ConsumerPrincipal extends Principal { @Override public String getType() { return "consumer"; } ConsumerPrincipal(Consumer consumer, Owner owner); Consumer getConsumer(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String getName(); @Override String getType(); @Override boolean hasFullAccess();  }
@Test public void type() { assertEquals("consumer", principal.getType()); }