### Question:
ProcessConfigPresenter { public ProcessConfig buildProcessConfig() { return new ProcessConfig(ClientRuntimeStrategy.convert(view.getRuntimeStrategy(), view.getTranslationService()).getRuntimeStrategy().toString(), view.getKBase(), view.getKSession(), ClientMergeMode.convert(view.getMergeMode(), view.getTranslationService()).getMergeMode().toString()); } @Inject  ProcessConfigPresenter(final View view, Caller<DeploymentDescriptorService> deploymentDescriptorService); @PostConstruct void init(); View getView(); void setup(final ContainerSpecKey containerSpecKey,
                      final ProcessConfig processConfig); void clear(); void setProcessConfig(final ProcessConfig processConfig); ContainerSpecKey getContainerSpecKey(); ProcessConfig getProcessConfig(); void disable(); void cancel(); ProcessConfig buildProcessConfig(); List<String> getRuntimeStrategies(); List<String> getMergeModes();  }### Answer:
@Test public void testBuildProcessConfig() { when( view.getRuntimeStrategy() ).thenReturn( "a" ); when( view.getKBase() ).thenReturn( "b" ); when( view.getKSession() ).thenReturn( "c" ); when( view.getMergeMode() ).thenReturn( "d" ); final ProcessConfig processConfig = presenter.buildProcessConfig(); assertEquals( "SINGLETON", processConfig.getRuntimeStrategy() ); assertEquals( "b", processConfig.getKBase() ); assertEquals( "c", processConfig.getKSession() ); assertEquals( "KEEP_ALL", processConfig.getMergeMode() ); }
@Test public void testBuildProcessConfig2() { when( view.getRuntimeStrategy() ).thenReturn( Constants.ClientRuntimeStrategy_PerProcessInstance ); when( view.getKBase() ).thenReturn( "b" ); when( view.getKSession() ).thenReturn( "c" ); when( view.getMergeMode() ).thenReturn( Constants.ClientMergeMode_MergeCollections ); final ProcessConfig processConfig = presenter.buildProcessConfig(); assertEquals( "PER_PROCESS_INSTANCE", processConfig.getRuntimeStrategy() ); assertEquals( "b", processConfig.getKBase() ); assertEquals( "c", processConfig.getKSession() ); assertEquals( "MERGE_COLLECTIONS", processConfig.getMergeMode() ); }