@Test
public void testEccPermission() {

    ReleasePermissions permissions = new ReleasePermissions(release, user);
    when(user.getUserGroup()).thenReturn(UserGroup.ECC_ADMIN);
    assertThat(permissions.isActionAllowed(RequestedAction.WRITE_ECC), is(true));
    when(user.getUserGroup()).thenReturn(UserGroup.CLEARING_ADMIN);
    assertThat(permissions.isActionAllowed(RequestedAction.WRITE_ECC), is(false));
}