@Test
    public void readResourceReturnsResponseBodyFor200Response() throws IOException {
        generateStub(200, SUCCESS_BODY);

        assertEquals(SUCCESS_BODY, ec2ResourceFetcher.readResource(endpoint));
    }
When server returns with status code 200,
the test successfully returns the body from the response.
aws-java-sdk-core/src/test/java/com/amazonaws/internal/EC2ResourceFetcherTest.java