@Test
public void testObtainNewAccessToken() throws IOException, TokenExpiredException {

    try(ArgusService argusService = new ArgusService(getMockedClient("/AuthServiceTest2.json"))) {
        AuthService authService = argusService.getAuthService();
        authService.login("aUsername", "aPassword");
        assertEquals("anAccessToken", authService.getClient().accessToken);
        authService.obtainNewAccessToken();
        assertEquals("aNewAccessToken", authService.getClient().accessToken);
    }
}