### Question:
RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public String newRuntime(RuntimeConfig conf) throws BusinessException { return runtimeProvisioningService.newRuntime(conf); } RuntimeProvisioningServiceBackendImpl(); @Inject  RuntimeProvisioningServiceBackendImpl(final RuntimeProvisioningService runtimeProvisioningService); @Override List<ProviderType> getProviderTypes(Integer page,
                                               Integer pageSize,
                                               String sort,
                                               boolean sortOrder); @Override List<Provider> getProviders(Integer page,
                                       Integer pageSize,
                                       String sort,
                                       boolean sortOrder); @Override List<Runtime> getRuntimes(Integer page,
                                     Integer pageSize,
                                     String sort,
                                     boolean sortOrder); @Override void registerProvider(ProviderConfig conf); @Override void unregisterProvider(String name); @Override String newRuntime(RuntimeConfig conf); @Override void destroyRuntime(String runtimeId,
                               boolean forced); @Override void startRuntime(String runtimeId); @Override void stopRuntime(String runtimeId); @Override void restartRuntime(String runtimeId); @Override List<RuntimeQueryResultItem> executeQuery(RuntimeQuery query);  }### Answer:
@Test public void testNewRuntime() { RuntimeConfig runtimeConfig = mock(RuntimeConfig.class); when(runtimeProvisioningService.newRuntime(runtimeConfig)).thenReturn(RUNTIME_ID); String result = runtimeProvisioningServiceBackend.newRuntime(runtimeConfig); verify(runtimeProvisioningService, times(1)).newRuntime(runtimeConfig); assertEquals(RUNTIME_ID, result); }