	@Test
	public void testGetRecordFactory() throws ResourceException, JCoException {

		// Given
		ConnectionImpl mockConnection = mock(ConnectionImpl.class);
		JCoDestination mockDestination = mock(JCoDestination.class);
		JCoRepository mockRepository = mock(JCoRepository.class);
		when(mockConnectionManager.allocateConnection(mockManagedConnectionFactory, null)).thenReturn(mockConnection);
		when(mockConnection.getDestination()).thenReturn(mockDestination);
		when(mockDestination.getRepository()).thenReturn(mockRepository);
		
		// When
		RecordFactory returnedRecordFactory = connectionFactory.getRecordFactory(); 
		
		// Then
		assertThat("ConnectionFactoryImpl.getRecordFactory() returned null RecordFactory", returnedRecordFactory, notNullValue());
	}