@Test(groups = { "unit" }, singleThreaded = true, testName = "ServerImageApiExpectTest")
public class ServerImageApiExpectTest extends BaseOpSourceServersRestApiExpectTest {
@Test
public void testGetMyAccount() {
OpSourceServersApi api = requestSendsResponse(
HttpRequest.builder().method("GET")
.endpoint("https://api.opsourcecloud.net/oec/0.9/myaccount")
.addHeader("Accept", "*/*")
.addHeader("Authorization", "Basic dXNlcjpwYXNzd29yZA==").build(),
HttpResponse.builder().statusCode(200).payload(payloadFromResource("/myaccount.xml")).build());
Account expected = Account.builder().orgId("8a8f6abc-2745-4d8a-9cbc-8dabe5a7d0e4").build();
assertEquals(api.getAccountApi().getMyAccount(), expected);
}