public static EnsemblePlacementPolicyConfig decode(byte[] data) throws ParseEnsemblePlacementPolicyConfigException {
        try {
            return ENSEMBLE_PLACEMENT_CONFIG_READER.readValue(data);
        } catch (IOException e) {
            throw new ParseEnsemblePlacementPolicyConfigException("Failed to decode from json", e);
        }
    }
@Test
    public void testDecodeFailed() {
        byte[] configBytes = new byte[0];
        try {
            EnsemblePlacementPolicyConfig.decode(configBytes);
            Assert.fail("should failed parse the config from bytes");
        } catch (EnsemblePlacementPolicyConfig.ParseEnsemblePlacementPolicyConfigException e) {
            // expected error
        }
    }