@Test
public void testCreateSuccessWithValuesSpecified() {

    final String flowId = flow.getFlowMetadata().getIdentifier();
    when(flowManager.getFlow(flowId)).thenReturn(Optional.of(flow));
    final VersionedRemoteProcessGroup requestConfig = new VersionedRemoteProcessGroup();
    requestConfig.setTargetUris("http://host1,http://host2");
    requestConfig.setCommunicationsTimeout("30 seconds");
    requestConfig.setYieldDuration("10 seconds");
    requestConfig.setTransportProtocol("HTTP");
    final FDRemoteProcessGroup createdRemoteProcessGroup = service.create(flowId, group1.getIdentifier(), requestConfig);
    assertNotNull(createdRemoteProcessGroup);
    assertEquals(requestConfig.getTargetUris(), createdRemoteProcessGroup.getComponentConfiguration().getTargetUris());
    assertEquals(requestConfig.getCommunicationsTimeout(), createdRemoteProcessGroup.getComponentConfiguration().getCommunicationsTimeout());
    assertEquals(requestConfig.getYieldDuration(), createdRemoteProcessGroup.getComponentConfiguration().getYieldDuration());
    assertEquals(requestConfig.getTransportProtocol(), createdRemoteProcessGroup.getComponentConfiguration().getTransportProtocol());
}