ServiceBrokerApiVersionErrorMessage { public static ServiceBrokerApiVersionErrorMessage from(String expectedVersion, String providedVersion) { return new ServiceBrokerApiVersionErrorMessage(expectedVersion, providedVersion); } private  ServiceBrokerApiVersionErrorMessage(String expectedVersion, String providedVersion); @Override String toString(); static ServiceBrokerApiVersionErrorMessage from(String expectedVersion, String providedVersion);  }
@Test void from() { ServiceBrokerApiVersionErrorMessage message = ServiceBrokerApiVersionErrorMessage .from("expected-version2", "actual-version2"); assertThat(message.toString()).isEqualTo( "The provided service broker API version is not supported: expected version=expected-version2, provided version=actual-version2"); }