@@ -0,0 +1,1732 @@
+package fi.vincit.mutrproject.service;%0A%0Aimport static fi.vincit.multiusertest.rule.expection.Expectations.call;%0Aimport static fi.vincit.multiusertest.util.UserIdentifiers.ifAnyOf;%0A%0Aimport org.junit.Test;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport fi.vincit.multiusertest.annotation.TestUsers;%0Aimport fi.vincit.multiusertest.util.LoginRole;%0Aimport fi.vincit.mutrproject.AbstractConfiguredIT;%0A%0A@TestUsers(%0A        creators = %7B%22role:ROLE_SUPER_ADMIN%22, %22role:ROLE_ADMIN%22, %22role:ROLE_USER%22, %22role:ROLE_USER%22%7D,%0A        users = %7B%22role:ROLE_SUPER_ADMIN%22, %22role:ROLE_ADMIN%22, %22role:ROLE_USER%22, %22role:ROLE_ANONYMOUS%22, TestUsers.CREATOR%7D%0A)%0Apublic class TodoServiceJava8IT extends AbstractConfiguredIT %7B%0A%0A    @Autowired%0A    private TodoService todoService;%0A%0A    @Test%0A    public void getPrivateTodoList() throws Throwable %7B%0A        long id = todoService.createTodoList(%22Test list%22, false);%0A        logInAs(LoginRole.USER);%0A        authorization().expect(%0A                call(() -%3E todoService.getTodoList(id))%0A                        .toFail(ifAnyOf(%22role:ROLE_USER%22, %22role:ROLE_ANONYMOUS%22))%0A        );%0A    %7D%0A%0A    @Test%0A    public void getPublicTodoList() throws Throwable %7B%0A        long id = todoService.createTodoList(%22Test list%22, true);%0A        logInAs(LoginRole.USER);%0A        todoService.getTodoList(id);%0A    %7D%0A%0A    @Test%0A    public void addTodoItem() throws Throwable %7B%0A        long listId = todoService.createTodoList(%22Test list%22, false);%0A        logInAs(LoginRole.USER);%0A%0A        authorization().expect(%0A                call(() -%3E todoService.addItemToList(listId, %22Write tests%22))%0A                        .notToFail(ifAnyOf(%22role:ROLE_ADMIN%22, %22role:ROLE_SUPER_ADMIN%22, TestUsers.CREATOR))%0A        );%0A    %7D%0A%0A%7D%0A

Add example test for Java8 style assertions