CloudAppConfigurationPOJO { public static CloudAppConfigurationPOJO fromCloudAppConfiguration(final CloudAppConfiguration cloudAppConfig) { CloudAppConfigurationPOJO result = new CloudAppConfigurationPOJO(); result.setAppName(cloudAppConfig.getAppName()); result.setAppURL(cloudAppConfig.getAppURL()); result.setBootstrapScript(cloudAppConfig.getBootstrapScript()); result.setCpuCount(cloudAppConfig.getCpuCount()); result.setMemoryMB(cloudAppConfig.getMemoryMB()); result.setAppCacheEnable(cloudAppConfig.isAppCacheEnable()); result.setEventTraceSamplingCount(cloudAppConfig.getEventTraceSamplingCount()); return result; }  CloudAppConfiguration toCloudAppConfiguration(); static CloudAppConfigurationPOJO fromCloudAppConfiguration(final CloudAppConfiguration cloudAppConfig);  }
@Test public void assertFromCloudAppConfiguration() { CloudAppConfigurationPOJO actual = CloudAppConfigurationPOJO.fromCloudAppConfiguration(new CloudAppConfiguration("app", "url", "start.sh")); 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)); }