### Question:
JCloudsCloud extends Cloud { static JCloudsCloud getByName(String name) { return (JCloudsCloud) Jenkins.getInstance().clouds.getByName(name); } @DataBoundConstructor  JCloudsCloud(final String profile, final String providerName, final String cloudCredentialsId, final String cloudGlobalKeyId,
            final String endPointUrl, final int instanceCap, final int retentionTime, final int scriptTimeout, final int startTimeout,
            final String zones, final String groupPrefix, final boolean trustAll, final List<JCloudsSlaveTemplate> templates); String getCloudCredentialsId(); boolean getTrustAll(); void setCloudCredentialsId(final String value); String getCloudGlobalKeyId(); void setCloudGlobalKeyId(final String value); String getGlobalPrivateKey(); String getGlobalPublicKey(); String getGroupPrefix(); int getRetentionTime(); A newApi(Class<A> apitype); ComputeService newCompute(); ComputeService getCompute(); List<JCloudsSlaveTemplate> getTemplates(); @Override Collection<NodeProvisioner.PlannedNode> provision(Label label, int excessWorkload); @Override boolean canProvision(final Label label); JCloudsSlaveTemplate getTemplate(String name); JCloudsSlaveTemplate getTemplate(Label label); void doProvision(StaplerRequest req, StaplerResponse rsp, @QueryParameter String name); void unregisterPhoneHomeMonitor(final PhoneHomeMonitor monitor); boolean phoneHomeNotify(final String name); boolean allowGzippedUserData(); final String providerName; final String endPointUrl; final String profile; public int instanceCap; final List<JCloudsSlaveTemplate> templates; final int scriptTimeout; final int startTimeout; final String zones; }### Answer:
@Test public void testConfigRoundtrip() throws Exception { JCloudsCloud original = new JCloudsCloud("aws-profile", "aws-ec2", "", "", "http: 600 * 1000, 600 * 1000, null, "foobar", true, Collections.<JCloudsSlaveTemplate>emptyList()); j.getInstance().clouds.add(original); j.submit(j.createWebClient().goTo("configure").getFormByName("config")); j.assertEqualBeans(original, j.getInstance().clouds.getByName("aws-profile"), "profile,providerName,cloudCredentialsId,cloudGlobalKeyId,endPointUrl,instanceCap,retentionTime,groupPrefix"); j.assertEqualBeans(original, JCloudsCloud.getByName("aws-profile"), "profile,providerName,cloudCredentialsId,cloudGlobalKeyId,endPointUrl,instanceCap,retentionTime,groupPrefix"); }