CloudAppConfigurationPOJO { public CloudAppConfiguration toCloudAppConfiguration() { return new CloudAppConfiguration(appName, appURL, bootstrapScript, cpuCount, memoryMB, appCacheEnable, eventTraceSamplingCount); }  CloudAppConfiguration toCloudAppConfiguration(); static CloudAppConfigurationPOJO fromCloudAppConfiguration(final CloudAppConfiguration cloudAppConfig);  }
@Test public void assertToCloudAppConfiguration() { CloudAppConfigurationPOJO pojo = new CloudAppConfigurationPOJO(); pojo.setAppName("app"); pojo.setAppURL("url"); pojo.setBootstrapScript("start.sh"); CloudAppConfiguration actual = pojo.toCloudAppConfiguration(); assertThat(actual.getAppName(), is("app")); assertThat(actual.getAppURL(), is("url")); assertThat(actual.getBootstrapScript(), is("start.sh")); assertThat(actual.getCpuCount(), is(1d)); assertThat(actual.getMemoryMB(), is(128d)); assertTrue(actual.isAppCacheEnable()); assertThat(actual.getEventTraceSamplingCount(), is(0)); }