ProfileConfig implements Serializable { public static ProfileConfig fromJSON(String json) throws IOException { return JSONUtils.INSTANCE.load(json, ProfileConfig.class); } ProfileConfig();  ProfileConfig(
          @JsonProperty(value = "profile", required = true) String profile,
          @JsonProperty(value = "foreach", required = true) String foreach,
          @JsonProperty(value = "result",  required = true) ProfileResult result); String getProfile(); void setProfile(String profile); ProfileConfig withProfile(String profile); String getForeach(); void setForeach(String foreach); ProfileConfig withForeach(String foreach); String getOnlyif(); void setOnlyif(String onlyif); ProfileConfig withOnlyif(String onlyif); Map<String, String> getInit(); void setInit(Map<String, String> init); ProfileConfig withInit(Map<String, String> init); ProfileConfig withInit(String var, String expression); Map<String, String> getUpdate(); void setUpdate(Map<String, String> update); ProfileConfig withUpdate(Map<String, String> update); ProfileConfig withUpdate(String var, String expression); List<String> getGroupBy(); void setGroupBy(List<String> groupBy); ProfileConfig withGroupBy(List<String> groupBy); ProfileResult getResult(); void setResult(ProfileResult result); ProfileConfig withResult(String profileExpression); Long getExpires(); void setExpires(Long expiresDays); ProfileConfig withExpires(Long expiresDays); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static ProfileConfig fromBytes(byte[] bytes); static ProfileConfig fromJSON(String json); String toJSON();  }
@Test public void testFromJSONWithNameMissing() { assertThrows(JsonMappingException.class, () -> ProfileConfig.fromJSON(nameMissing)); }
@Test public void testFromJSONWithForeachMissing() { assertThrows(JsonMappingException.class, () -> ProfileConfig.fromJSON(foreachMissing)); }
@Test public void testFromJSONWithResultMissing() { assertThrows(JsonMappingException.class, () -> ProfileConfig.fromJSON(resultMissing)); }
@Test public void testFromJSONWithResultMissingProfileExpression() { assertThrows(JsonMappingException.class, () -> ProfileConfig.fromJSON(resultMissingProfileExpression)); }