// Path: src/main/java/org/jenkinsci/plugins/mesos/MesosAgentSpecTemplate.java
// @Extension
// public static final class DescriptorImpl extends Descriptor<MesosAgentSpecTemplate> {
// 
//   public DescriptorImpl() {
//     load();
//   }
// 
//   /**
//    * Validate that CPUs is a positive double.
//    *
//    * @param cpus The number of CPUs to user for agent.
//    * @return Whether the supplied CPUs is valid.
//    */
//   public FormValidation doCheckCpus(@QueryParameter String cpus) {
//     try {
//       if (Double.valueOf(cpus) > 0.0) {
//         return FormValidation.ok();
//       } else {
//         return FormValidation.error(cpus + " must be a positive floating-point-number.");
//       }
//     } catch (NumberFormatException e) {
//       return FormValidation.error(cpus + " must be a positive floating-point-number.");
//     }
//   }
// }


import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import hudson.util.FormValidation.Kind;
import org.jenkinsci.plugins.mesos.MesosAgentSpecTemplate.DescriptorImpl;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
package org.jenkinsci.plugins.mesos;



@ExtendWith(TestUtils.JenkinsParameterResolver.class)
public class MesosAgentSpecTemplateDescriptorTest {

  @Test
  public void validateCpus(TestUtils.JenkinsRule j) {
// Path: src/main/java/org/jenkinsci/plugins/mesos/MesosAgentSpecTemplate.java
// @Extension
// public static final class DescriptorImpl extends Descriptor<MesosAgentSpecTemplate> {
// 
//   public DescriptorImpl() {
//     load();
//   }
// 
//   /**
//    * Validate that CPUs is a positive double.
//    *
//    * @param cpus The number of CPUs to user for agent.
//    * @return Whether the supplied CPUs is valid.
//    */
//   public FormValidation doCheckCpus(@QueryParameter String cpus) {
//     try {
//       if (Double.valueOf(cpus) > 0.0) {
//         return FormValidation.ok();
//       } else {
//         return FormValidation.error(cpus + " must be a positive floating-point-number.");
//       }
//     } catch (NumberFormatException e) {
//       return FormValidation.error(cpus + " must be a positive floating-point-number.");
//     }
//   }
// }


// Path: src/test/java/org/jenkinsci/plugins/mesos/MesosAgentSpecTemplateDescriptorTest.java
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import hudson.util.FormValidation.Kind;
import org.jenkinsci.plugins.mesos.MesosAgentSpecTemplate.DescriptorImpl;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

package org.jenkinsci.plugins.mesos;



@ExtendWith(TestUtils.JenkinsParameterResolver.class)
public class MesosAgentSpecTemplateDescriptorTest {

  @Test
  public void validateCpus(TestUtils.JenkinsRule j) {
    MesosAgentSpecTemplate.DescriptorImpl descriptor = new DescriptorImpl();