@POST
    @Timed
    @ApiOperation(value = "Get titles of provided entities")
    @NoAuditEvent("This endpoint does not change any data")
    @Consumes(MediaType.APPLICATION_JSON)
    @Path("/entities/titles")
    public EntitiesTitleResponse getTitles(@ApiParam(name = "JSON body", required = true) final EntityTitleRequest request, @Context SearchUser searchUser) {
        return entityTitleService.getTitles(request, searchUser);
    }
@Test
    public void getTitles() {
        final EntityTitleRequest request = new EntityTitleRequest(List.of(new EntityIdentifier("id", "x")));
        final EntitiesTitleResponse expectedResponse = new EntitiesTitleResponse(
                Set.of(new EntityTitleResponse("id", "x", "Title")),
                Set.of()
        );

        final CatalogResource resource = new CatalogResource(contentPackService, (r, p) -> expectedResponse);

        final EntitiesTitleResponse actualResponse = resource.getTitles(request, TestSearchUser.builder().build());
        assertEquals(expectedResponse, actualResponse);
    }