@Test
public void containsWorksAsExpected() {

    underTest = Permissions.newInstance(Permission.READ, Permission.WRITE);
    assertThat(underTest.contains(Permission.READ)).isTrue();
    assertThat(underTest.contains(Permission.WRITE)).isTrue();
    assertThat(underTest.contains(Permission.ADMINISTRATE)).isFalse();
    assertThat(underTest.contains(Permission.READ, Permission.WRITE)).isTrue();
    assertThat(underTest.contains(Permission.READ, Permission.ADMINISTRATE)).isFalse();
    assertThat(underTest.contains(Permission.WRITE, Permission.ADMINISTRATE)).isFalse();
    underTest = Permissions.newInstance(Permission.READ, Permission.WRITE, Permission.ADMINISTRATE);
    assertThat(underTest.contains(Permission.READ, Permission.ADMINISTRATE)).isTrue();
}