@@ -0,0 +1,1212 @@
+package net.explorviz.security.server;%0A%0Aimport io.restassured.mapper.ObjectMapperType;%0Aimport net.explorviz.security.model.UserCredentials;%0Aimport net.explorviz.security.server.helper.JsonAPIMapper;%0Aimport net.explorviz.shared.security.model.User;%0Aimport org.hamcrest.Matchers;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport java.util.Optional;%0A%0Aimport static io.restassured.RestAssured.given;%0A%0Apublic class Login %7B%0A%0A  // This is bad since other test rely on this%0A%0A  private static final String AUTH_URL = %22http://localhost:8082/v1/tokens/%22;%0A  private static final String ADMIN_NAME = %22admin%22;%0A  private static final String ADMIN_PW = %22password%22;%0A%0A%0A  @Test%0A  void testValidLogin()%7B%0A    given().contentType(%22application/json%22)%0A        .body(new UserCredentials(ADMIN_NAME, ADMIN_PW), ObjectMapperType.JACKSON_2)%0A        .when()%0A        .post(AUTH_URL)%0A        .then()%0A        .statusCode(200)%0A        .body(%22data.attributes%22, Matchers.hasKey(%22token%22));%0A  %7D%0A%0A%0A  @Test%0A  void testInvalidLogin()%7B%0A    given().contentType(%22application/json%22)%0A        .body(new UserCredentials(ADMIN_NAME, %22invalidpw%22), ObjectMapperType.JACKSON_2)%0A        .when()%0A        .post(AUTH_URL)%0A        .then()%0A        .statusCode(403);%0A  %7D%0A%0A%0A%0A%7D%0A

Add tests for Login