@@ -0,0 +1,1398 @@
+package at.ac.tuwien.inso.method_security_tests;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.security.authentication.AuthenticationCredentialsNotFoundException;%0Aimport org.springframework.security.core.userdetails.UsernameNotFoundException;%0Aimport org.springframework.security.test.context.support.WithMockUser;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0Aimport at.ac.tuwien.inso.service.UserAccountService;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration%0A@SpringBootTest%0A@ActiveProfiles(%22test%22)%0A@Transactional%0Apublic class UserAccountServiceSecurityTests %7B%0A%0A%0A    @Autowired%0A    private UserAccountService userAccountService;%0A%0A    @Test(expected = AuthenticationCredentialsNotFoundException.class)%0A    public void getCurrentLoggedInUserNotAuthenticated() %7B%0A        userAccountService.getCurrentLoggedInUser();%0A    %7D%0A%0A    @Test(expected = UsernameNotFoundException.class)%0A    @WithMockUser%0A    public void getCurrentLoggedInUserAuthenticated() %7B%0A        userAccountService.getCurrentLoggedInUser();%0A    %7D%0A%7D%0A

Add tests for UserAccountService security