@Test
public void testCreateSuccessWithTrimmedUris() {

    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     ");
    final FDRemoteProcessGroup createdRemoteProcessGroup = service.create(flowId, group1.getIdentifier(), requestConfig);
    assertNotNull(createdRemoteProcessGroup);
    assertEquals("http://host1,http://host2", createdRemoteProcessGroup.getComponentConfiguration().getTargetUris());
}