[Demonstration 2]

[Buggy Method]
@Test
public void testAsyncStandardTags() throws IOException {
    {
        mockWebServer.enqueue(new MockResponse().setResponseCode(202));
        okHttpClient.newCall(new Request.Builder().url(mockWebServer.url("foo")).build()).enqueue(new Callback() {

            @Override
            public void onFailure(Call call, IOException e) {
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
            }
        });
    }
    Awaitility.await().until(reportedSpansSize(), IsEqual.equalTo(1));
    List<MockSpan> mockSpans = mockTracer.finishedSpans();
    Assert.assertEquals(1, mockSpans.size());
    assertOnErrors(mockSpans);
    MockSpan mockSpan = mockSpans.get(0);
    Assert.assertEquals(8, mockSpan.tags().size());
    Assert.assertEquals("java-okhttp", mockSpan.tags().get(Tags.COMPONENT.getKey()));
    Assert.assertEquals(Tags.SPAN_KIND_CLIENT, mockSpan.tags().get(Tags.SPAN_KIND.getKey()));
    Assert.assertEquals("http://localhost:" + mockWebServer.getPort() + "/foo", mockSpan.tags().get(Tags.HTTP_URL.getKey()));
    Assert.assertEquals("GET", mockSpan.tags().get(Tags.HTTP_METHOD.getKey()));
    Assert.assertEquals(202, mockSpan.tags().get(Tags.HTTP_STATUS.getKey()));
    Assert.assertEquals((short) mockWebServer.getPort(), mockSpan.tags().get(Tags.PEER_PORT.getKey()));
    Assert.assertEquals("localhost", mockSpan.tags().get(Tags.PEER_HOSTNAME.getKey()));
    Assert.assertEquals(ipv4ToInt("127.0.0.1"), mockSpan.tags().get(Tags.PEER_HOST_IPV4.getKey()));
    Assert.assertEquals(0, mockSpan.logEntries().size());
}

[Buggy Hunk]
Assert.assertEquals((short) mockWebServer.getPort(), mockSpan.tags().get(Tags.PEER_PORT.getKey()));

[Patch]
Assert.assertEquals(mockWebServer.getPort(), mockSpan.tags().get(Tags.PEER_PORT.getKey()));

[Demonstration 3]

[Buggy Method]
@Test
public void testDeleteNodeWithARightNodeThatHasALeftNode() {
    tree.delete(3);
    TrinaryTreeNode node = tree.getRoot();
    Assert.assertEquals(5, node.getValue());
    Assert.assertEquals(6, node.getRightNode().getValue());
    Assert.assertEquals(4, node.getRightNode().getLeftNode().getValue());
}

[Buggy Hunk]
Assert.assertEquals(4, node.getRightNode().getLeftNode().getValue());

[Patch]
Assert.assertEquals(4, node.getLeftNode().getValue());