    @Test
    public void should_return_a_perf_issue_if_heap_allocation_is_greater_than_expected() {


        // GIVEN
        ExpectMaxHeapAllocation annotation = JvmAnnotationBuilder.expectMaxHeapAllocation(3.75 * 1024
                                                                                        , AllocationUnit.MEGA_BYTE);

        // 3.75 giga bytes
        Allocation measuredAllocation = Allocation.ofBytes(4724464025L);

        // WHEN
        VerifiablePerformanceIssue maxHeapAllocationPerfIssueVerifier = MaxHeapAllocationPerfVerifier.INSTANCE;

        @SuppressWarnings("unchecked")
        PerfIssue perfIssue = maxHeapAllocationPerfIssueVerifier.verifyPerfIssue(annotation, measuredAllocation);

        // THEN
        assertThat(perfIssue).isNotEqualTo(PerfIssue.NONE);
        String description = perfIssue.getDescription();
        assertThat(description).contains("Expected heap allocation (test method thread) to be less than 3.75 Giga bytes but is 4.40 Giga bytes (4 724 464 025 bytes).");

    }