### Question:
AuthenticationInsight implements Parcelable { static AuthenticationInsight fromJson(JSONObject json) { if (json == null) { return null; } AuthenticationInsight authInsight = new AuthenticationInsight(); String regulationEnv; if (json.has(GRAPHQL_REGULATION_ENVIRONMENT_KEY)) { regulationEnv = Json.optString(json, GRAPHQL_REGULATION_ENVIRONMENT_KEY, null); } else { regulationEnv = Json.optString(json, REST_REGULATION_ENVIRONMENT_KEY, null); } if ("psdtwo".equalsIgnoreCase(regulationEnv)) { regulationEnv = "psd2"; } if (regulationEnv != null ) { regulationEnv = regulationEnv.toLowerCase(); } authInsight.mRegulationEnvironment = regulationEnv; return authInsight; } AuthenticationInsight(); private  AuthenticationInsight(Parcel in); String getRegulationEnvironment(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<AuthenticationInsight> CREATOR; }### Answer:
@Test public void fromJson_onNullJsonObject_returnsNull() { assertNull(AuthenticationInsight.fromJson(null)); }