* Getting all connectors at once should avoid any other HTTP request to
* specific connectors.
*/
@Test
public void testGetConnectors() {
MConnector connector;
when(requests.readConnector(null)).thenReturn(connectorBean(connector(1), connector(2)));
Collection<MConnector> connectors = client.getConnectors();
assertEquals(2, connectors.size());
client.getResourceBundle(1);
connector = client.getConnector(1);
assertEquals(1, connector.getPersistenceId());
connector = client.getConnector(2);
client.getResourceBundle(2);
assertEquals(2, connector.getPersistenceId());
connectors = client.getConnectors();
assertEquals(2, connectors.size());
verify(requests, times(1)).readConnector(null);