    @Test
    public final void validatePlatformCredentialWithDeviceChassis()
         throws Exception {


        DeviceInfoReport deviceInfoReport = buildReport(
                new HardwareInfo(PLATFORM_MANUFACTURER, PLATFORM_MODEL,
                        PLATFORM_VERSION, DeviceInfoReport.NOT_SPECIFIED,
                        TEST_SERIAL_NUMBER, TEST_SERIAL_NUMBER));
        deviceInfoReport = PowerMockito.spy(deviceInfoReport);

        URL url = SupplyChainCredentialValidator.class.getResource(
                SAMPLE_PACCOR_OUTPUT_WITH_EXTRA_COMPONENT_TXT);
        String paccorOutputString = IOUtils.toString(url);
        when(deviceInfoReport.getPaccorOutputString()).thenReturn(paccorOutputString);

        byte[] certBytes = Files.readAllBytes(Paths.get(CertificateTest.class.
                getResource(TEST_PLATFORM_CRED).toURI()));

        PlatformCredential pc = new PlatformCredential(certBytes);

        EndorsementCredential ec = PowerMockito.spy(new EndorsementCredential(
                Files.readAllBytes(Paths.get(getClass().getResource(EK_CERT).toURI()))
        ));
        PowerMockito.when(ec, "getSerialNumber").thenReturn(pc.getHolderSerialNumber());

        AppraisalStatus result =
                supplyChainCredentialValidator.validatePlatformCredentialAttributes(
                pc, deviceInfoReport, ec);
        Assert.assertEquals(result.getAppStatus(), AppraisalStatus.Status.PASS);
        Assert.assertEquals(result.getMessage(),
                SupplyChainCredentialValidator.PLATFORM_ATTRIBUTES_VALID);
    }