### Question:
GatewayPropertyWriter extends PropertyWriter { public void setSource(BasePropertyWriter source) { setDefaultGateway(source); } GatewayPropertyWriter(Gateway gateway, VariableScope variableScope); void setDefaultRoute(String defaultRouteExpression); void setSource(BasePropertyWriter source); void setTarget(BasePropertyWriter target); void setGatewayDirection(Node n); void setGatewayDirection(GatewayDirection direction);  }### Answer:
@Test public void testSetSourceForExclusiveGateway() { ExclusiveGateway exclusiveGateway = mockGateway(ExclusiveGateway.class, ID); prepareTestSetSourceOrTarget(exclusiveGateway); propertyWriter.setSource(anotherPropertyWriter); verify(exclusiveGateway).setDefault(sequenceFlow); }
@Test public void testSetSourceForInclusiveGateway() { InclusiveGateway inclusiveGateway = mockGateway(InclusiveGateway.class, ID); prepareTestSetSourceOrTarget(inclusiveGateway); propertyWriter.setSource(anotherPropertyWriter); verify(inclusiveGateway).setDefault(sequenceFlow); }