@Test
	public void testCreateJobRepository() throws Exception {

		final String TEST_ISOLATION_LEVEL = "TEST_ISOLATION_LEVEL";
		final int TEST_CLOB_TYPE = 5;
		final String TEST_DB_TYPE = "derby";
		final int TEST_MAX_VARCHAR_LENGTH = 3;
		final String TEST_TABLE_PREFIX = "TEST_TABLE_PREFIX";
		final boolean TEST_VALIDATE_TRANSACTION_STATE = false;

		RuntimeBatchConfigurer batchConfigurer = spy(new RuntimeBatchConfigurer());

		JobRepositoryFactoryBean jobRepositoryFactoryBean = mock(JobRepositoryFactoryBean.class);
		when(batchConfigurer.createJobRepositoryFactoryBean()).thenReturn(jobRepositoryFactoryBean);

		batchConfigurer.setIsolationLevel(TEST_ISOLATION_LEVEL);
		batchConfigurer.setClobType(TEST_CLOB_TYPE);
		batchConfigurer.setDbType(TEST_DB_TYPE);
		batchConfigurer.setMaxVarCharLength(TEST_MAX_VARCHAR_LENGTH);
		batchConfigurer.setTablePrefix(TEST_TABLE_PREFIX);
		batchConfigurer.setValidateTransactionState(TEST_VALIDATE_TRANSACTION_STATE);

		batchConfigurer.createJobRepository();

		verify(jobRepositoryFactoryBean).getObject();
		verify(jobRepositoryFactoryBean).setIsolationLevelForCreate(TEST_ISOLATION_LEVEL);
		verify(jobRepositoryFactoryBean).setClobType(TEST_CLOB_TYPE);
		verify(jobRepositoryFactoryBean).setDatabaseType(TEST_DB_TYPE);
		verify(jobRepositoryFactoryBean).setMaxVarCharLength(TEST_MAX_VARCHAR_LENGTH);
		verify(jobRepositoryFactoryBean).setTablePrefix(TEST_TABLE_PREFIX);
		verify(jobRepositoryFactoryBean).setValidateTransactionState(TEST_VALIDATE_TRANSACTION_STATE);

	}
Test method for {@link org.springframework.xd.dirt.batch.RuntimeBatchConfigurer#createJobRepository()}.
@throws Exception
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/batch/RuntimeBatchConfigurerTests.java