### Question:
JDBCUtil { public static boolean getAutoCommit(String url, Properties info, boolean defaultValue) { String autoCommit = findProperty(url, info, PhoenixRuntime.AUTO_COMMIT_ATTRIB); if (autoCommit == null) { return defaultValue; } return Boolean.valueOf(autoCommit); } private  JDBCUtil(); static String findProperty(String url, Properties info, String propName); static String removeProperty(String url, String propName); static Map<String, String> getAnnotations(@NotNull String url, @NotNull Properties info); static Long getCurrentSCN(String url, Properties info); static Long getBuildIndexSCN(String url, Properties info); static int getMutateBatchSize(String url, Properties info, ReadOnlyProps props); static long getMutateBatchSizeBytes(String url, Properties info, ReadOnlyProps props); static @Nullable PName getTenantId(String url, Properties info); static boolean getAutoCommit(String url, Properties info, boolean defaultValue); static Consistency getConsistencyLevel(String url, Properties info, String defaultValue); static boolean isCollectingRequestLevelMetricsEnabled(String url, Properties overrideProps, ReadOnlyProps queryServicesProps); static String getSchema(String url, Properties info, String defaultValue);  }### Answer:
@Test public void testGetAutoCommit_NotSpecified_DefaultTrue() { assertTrue(JDBCUtil.getAutoCommit("localhost", new Properties(), true)); }
@Test public void testGetAutoCommit_NotSpecified_DefaultFalse() { assertFalse(JDBCUtil.getAutoCommit("localhost", new Properties(), false)); }
@Test public void testGetAutoCommit_TrueInUrl() { assertTrue(JDBCUtil.getAutoCommit("localhost;AutoCommit=TrUe", new Properties(), false)); }
@Test public void testGetAutoCommit_FalseInUrl() { assertFalse(JDBCUtil.getAutoCommit("localhost;AutoCommit=FaLse", new Properties(), false)); }
@Test public void testGetAutoCommit_TrueInProperties() { Properties props = new Properties(); props.setProperty("AutoCommit", "true"); assertTrue(JDBCUtil.getAutoCommit("localhost", props, false)); }
@Test public void testGetAutoCommit_FalseInProperties() { Properties props = new Properties(); props.setProperty("AutoCommit", "false"); assertFalse(JDBCUtil.getAutoCommit("localhost", props, false)); }