    @Test
    public void TestMinersRule() {

        String inputStr = null;
        try {
            inputStr = getFileAsString("src/test/resources/minersRuleIn.json");
        } catch (Exception e) {
            e.printStackTrace();
            Assert.fail();
        }

        byte[] model = null;
        try {
            model = getFileAsByteArray("src/test/resources/minersRuleModel.txt");
        } catch (Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
        Map<String, byte[]> models = new HashMap<String, byte[]>();
        models.put(MinersRule.STRESS_LIMITS_MODEL_NAME, model);

        MinersRule minersRule = new MinersRule();

        String jsonOut = null;
        try {
            jsonOut = minersRule.computeCDM(inputStr, models);

        } catch (Exception e) {
            e.printStackTrace();
            Assert.fail();
        }

        String expectedOut = null;
        try {
            expectedOut = getFileAsString("src/test/resources/minersRuleOut.json");
        } catch (Exception e) {
            e.printStackTrace();
            Assert.fail();
        }


        Assert.assertEquals(expectedOut, jsonOut);

    }