### Question:
TaskAssigningRuntimeClientFactory { public static TaskAssigningRuntimeClient newRuntimeClient(final String endpoint, final String login, final String password, final long timeout) { KieServicesClient servicesClient = createKieServicesClient(endpoint, login, password, timeout); return servicesClient.getServicesClient(TaskAssigningRuntimeClient.class); } private  TaskAssigningRuntimeClientFactory(); static TaskAssigningRuntimeClient newRuntimeClient(final String endpoint,
                                                              final String login,
                                                              final String password,
                                                              final long timeout);  }### Answer:
@Test public void newRuntimeClient() { TaskAssigningRuntimeClient client = TaskAssigningRuntimeClientFactory.newRuntimeClient(ENDPOINT, USER, PWD, TIMEOUT); assertTrue(client instanceof TaskAssigningRuntimeClientImpl); TaskAssigningRuntimeClientImpl clientImpl = (TaskAssigningRuntimeClientImpl) client; KieServicesConfiguration config = clientImpl.getConfig(); assertEquals(ENDPOINT, config.getServerUrl()); assertEquals(USER, config.getUserName()); assertEquals(PWD, config.getPassword()); assertEquals(TIMEOUT, config.getTimeout(), 0); assertEquals("true", System.getProperty(CFG_BYPASS_AUTH_USER)); }