AbstractClient { protected String getUserAgent() { Package classPackage = AbstractClient.class.getPackage(); String implementationVersion = classPackage != null ? classPackage.getImplementationVersion() : EMPTY; String version = isNotBlank(implementationVersion) ? "/" + implementationVersion : EMPTY; return String.format(userAgent, version); } AbstractClient();  AbstractClient(DeployerLog log); synchronized void initialize(); void setUserAgent(String userAgent);  }
@Test public void getUserAgentMuleDeployer() { AbstractClient client = new TesteableClient(); String userAgent = client.getUserAgent(); assertThat(userAgent, is("mule-deployer")); }