import org.junit.Test;
import io.restassured.RestAssured;
import static io.restassured.RestAssured.*;
public class APITest {
@BeforeClass
public static void setup() {
RestAssured.baseURI = "https://api.example.com";
}
@Test
public void testGetUser() {
given()
.header("Authorization", "Bearer token")
.when()
.get("/user")
.then()
.statusCode(200);
}
}