@Test
public void testAddConnectionWithConnectionIdAndIsActive() {

	ElasticsearchConnection elasticsearchConnection = Mockito.mock(
		ElasticsearchConnection.class);
	Mockito.when(
		elasticsearchConnection.getConnectionId()
	).thenReturn(
		"test"
	);
	Mockito.when(
		elasticsearchConnection.isActive()
	).thenReturn(
		true
	);
	_elasticsearchConnectionManager.addElasticsearchConnection(
		elasticsearchConnection);
	Mockito.verify(
		elasticsearchConnection
	).isActive();
	Mockito.verify(
		elasticsearchConnection
	).connect();
}