protected static List<LastOpenedDTO> filterForExistingIdAndCapAtMaximum(final LastOpenedForUserDTO loi, final GRN grn, final long max) {
        return loi.items().stream().filter(i -> !i.grn().equals(grn)).limit(max - 1).toList();
    }
@Test
    public void testDontRemoveIfExistsInList() {
        var _1 = grnRegistry.newGRN(GRNTypes.DASHBOARD, "1");
        var _2 = grnRegistry.newGRN(GRNTypes.SEARCH, "2");

        LastOpenedForUserDTO dto = new LastOpenedForUserDTO("userId", List.of(new LastOpenedDTO(_1, DateTime.now(DateTimeZone.UTC))));

        var result = StartPageService.filterForExistingIdAndCapAtMaximum(dto, _2, MAX);
        assertThat(result.isEmpty()).isFalse();
    }