@Test(expected = IllegalArgumentException.class)
public void testUpdateWithInvalidYieldDuration() {

    final String flowId = flow.getFlowMetadata().getIdentifier();
    when(flowManager.getFlow(flowId)).thenReturn(Optional.of(flow));
    final VersionedRemoteProcessGroup requestConfig = new VersionedRemoteProcessGroup();
    requestConfig.setIdentifier(remoteProcessGroup.getIdentifier());
    requestConfig.setYieldDuration("INVALID");
    service.update(flowId, requestConfig);
}