### Question:
Payment extends BaseModel { public static Payment fromJson(String json) { return JsonConverter.deserialize(json, Payment.class); } Payment();   Payment(String flowType, String flowName, Amounts amounts, Basket basket, Customer customer, boolean splitEnabled, Token cardToken,
            AdditionalData additionalData, String source, String deviceId, String paymentMethod);   Payment(String id, String requestSource, String flowType, String flowName, Amounts amounts, Basket basket, Customer customer,
            boolean splitEnabled, Token cardToken, AdditionalData additionalData, String deviceId, String paymentMethod); @NonNull String getFlowType(); @Nullable String getFlowName(); @NonNull Amounts getAmounts(); @Nullable Basket getBasket(); @Nullable String getPaymentMethod(); @Nullable Customer getCustomer(); boolean isSplitEnabled(); @Nullable Token getCardToken(); @NonNull AdditionalData getAdditionalData(); boolean isExternalId(); @NonNull String getSource(); @Nullable String getDeviceId(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toJson(); static Payment fromJson(String json);  }### Answer:
@Test(expected = JsonParseException.class) public void invalidJsonWillThrow() { Payment.fromJson("{}ahjj"); }