### Question:
Client { public static Map<String,String> runTransaction(Map<String,String> request, Properties props) throws FaultException, ClientException { return (runTransaction( request, props, null, true, true)); }  static Map<String,String> runTransaction(Map<String,String> request, Properties props); @SuppressWarnings("unchecked") static Map<String, String> runTransaction(
            Map<String, String> request, Properties props,
            Logger _logger, boolean prepare, boolean logTranStart);  }### Answer:
@Test public void testShouldFailedIfMTIFieldNotExist_2() throws FaultException { merchantProperties.put("useHttpClientWithConnectionPool", "true"); merchantProperties.put("retryIfMTIFieldExist", "false"); try { Client.runTransaction(request, merchantProperties); Assert.fail(); } catch (ClientException e) { Assert.assertEquals(MTI_FIELD_ERR_MSG, e.getHttpError()); Assert.assertFalse(e.isCritical()); Assert.assertNull(e.getInnerException()); Assert.assertEquals("ClientException: (" + HTTP_BAD_REQUEST + ") " + MTI_FIELD_ERR_MSG, e.getLocalizedMessage()); Assert.assertEquals(400, e.getHttpStatusCode()); } }
@Test public void testShouldFailedIfMTIFieldNotExist_1() throws FaultException { merchantProperties.put("useHttpClientWithConnectionPool", "true"); merchantProperties.put("retryIfMTIFieldExist", "true"); try { Client.runTransaction(request, merchantProperties); Assert.fail(); } catch (ClientException e) { Assert.assertEquals(MTI_FIELD_ERR_MSG, e.getHttpError()); Assert.assertFalse(e.isCritical()); Assert.assertNull(e.getInnerException()); Assert.assertEquals("ClientException: (" + HTTP_BAD_REQUEST + ") " + MTI_FIELD_ERR_MSG, e.getLocalizedMessage()); Assert.assertEquals(400, e.getHttpStatusCode()); } }