### Question:
FlexClientManager extends ManageableComponent { public FlexClient getFlexClient(String id) { return getFlexClient(id, true); } FlexClientManager();  FlexClientManager(MessageBroker broker);  FlexClientManager(boolean enableManagement, MessageBroker mbroker); String[] getClientIds(); int getFlexClientCount(); long getFlexClientTimeoutMillis(); void setFlexClientTimeoutMillis(long value); MessageBroker getMessageBroker(); FlexClient getFlexClient(String id); FlexClient getFlexClient(String id, boolean createNewIfNotExist); FlexClientOutboundQueueProcessor createOutboundQueueProcessor(FlexClient flexClient, String endpointId); void monitorAsyncPollTimeout(TimeoutAbstractObject asyncPollTimeout); void monitorScheduledFlush(TimeoutAbstractObject scheduledFlushTimeout); @Override void start(); void stop(); static final String TYPE; }### Answer:
@Test public void testGetFlexClientNewId() { String id = "def"; FlexClient client = manager.getFlexClient(id); Assert.assertNotNull(client); Assert.assertEquals(id, client.getId()); }
@Test public void testGetFlexClientCreateNewFalse() { String id = "jkl"; FlexClient client = manager.getFlexClient(id, false); Assert.assertNull(client); }