package org.sagebionetworks.table.cluster;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class InstanceUtilsTest {

	@Test
	public void testCreateDatabaseInstanceIdentifier(){
		assertEquals("prod-2-table-101", InstanceUtils.createDatabaseInstanceIdentifier("prod", "2", 101));
	}
	
	@Test
	public void testCreateDatabaseSchemaName(){
		assertEquals("devtester", InstanceUtils.createDatabaseSchemaName("dev", "tester"));
	}
	
	@Test
	public void testCreateDatabaseConnectionURL(){
		assertEquals("jdbc:mysql://endpoint/schema", InstanceUtils.createDatabaseConnectionURL("endpoint", "schema"));
	}
}

@@ -570,19 +570,54 @@
 t/schema
-%22, 
+?rewriteBatchedStatements=true%22,%0D%0A%09%09%09%09
 Instance

build fix