Gq implements Identifiable, Group<Gq> { @Override public Group.Element<Gq> getIdentityElement() { return element(BigInteger.ONE); } Gq(GqSetup setup); @Override Group.Element<Gq> getIdentityElement(); @Override Group.Element<Gq> getGenerator(); @Override String getIdentity(); @Override Group.Element<Gq> getRandomElement();  }
@Test public void shouldBeAbleToReturnTheIdentityOfTheGroup() { Group.Element<Gq> identity = group.getIdentityElement(); assertEquals(group, identity.getGroup()); }