private void assertResponse(String url, String expectedResponse, JDisc jdisc) {
        try {
            Response response = jdisc.handleRequest(new Request(url));

            // Truncate JSON encoded numbers having more than 6 digits after the decimal point
            String pattern = "([0-9]+\\.[0-9]{6})[0-9]*";
            String normalizedExpectedResponse = expectedResponse.replaceAll(pattern, "$1");
            String normalizedActualResponse = response.getBodyAsString().replaceAll(pattern, "$1");

            JsonTestHelper.assertJsonEquals(normalizedExpectedResponse, normalizedActualResponse);
            assertEquals(200, response.getStatus());
        }
        catch (CharacterCodingException e) {
            throw new RuntimeException(e);
        }
    }
Verify that we can create a JDisc (and hence Application) instance capable of doing model evaluation

@author bratseth
application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java