configureDeployment

public void configureDeployment(Supplier<DeploymentType> supplier)

Makes the deploymentType return the values from the provided supplier.

When supplying your own deployment type in tests, remember to reset it during tear down.