@Test
public void reConfiguredActivity() throws Exception {

    assertEquals("Unexpected inputs", 0, activity.getInputPorts().size());
    assertEquals("Unexpected outputs", 0, activity.getOutputPorts().size());
    activity.configure(configBean);
    assertEquals("Unexpected inputs", 1, activity.getInputPorts().size());
    assertEquals("Unexpected outputs", 2, activity.getOutputPorts().size());
    activity.configure(configBean);
    // Should not change on reconfigure
    assertEquals("Unexpected inputs", 1, activity.getInputPorts().size());
    assertEquals("Unexpected outputs", 2, activity.getOutputPorts().size());
}