// Path: core/src/main/java/edu/jhuapl/dorset/agents/Description.java
// public class Description {
//     private String name;
//     private String summary;
//     private String[] examples;
// 
//     /**
//      * For java bean use only
//      */
//     public Description() {}
// 
//     /**
//      * Create an agent description
//      *
//      * @param name  Name of the agent
//      * @param summary  A user-facing description of the agent's capabilities
//      * @param example  An example question or command
//      */
//     public Description(String name, String summary, String example) {
//         this(name, summary, new String[]{example});
//     }
// 
//     /**
//      * Create an agent description
//      *
//      * @param name  Name of the agent
//      * @param summary  A user-facing description of the agent's capabilities
//      * @param examples  Array of example questions or commands
//      */
//     public Description(String name, String summary, String[] examples) {
//         this.setName(name);
//         this.setSummary(summary);
//         this.setExamples(examples);
//     }
// 
//     /**
//      * Copy a description
//      *
//      * @param description  agent description
//      */
//     public Description(Description description) {
//         this(description.getName(), description.getSummary(), description.getExamples());
//     }
// 
//     /**
//      * Get the summary
//      *
//      * @return the summary
//      */
//     public String getSummary() {
//         return summary;
//     }
// 
//     /**
//      * Set the summary
//      *
//      * @param summary  A description of the agent's capabilities
//      */
//     public void setSummary(String summary) {
//         this.summary = summary;
//     }
// 
//     /**
//      * Get the example requests for the agent
//      *
//      * @return examples of using the agent
//      */
//     public String[] getExamples() {
//         return examples.clone();
//     }
// 
//     /**
//      * Set several examples of requests for the agent
//      *
//      * @param examples  Array of example requests that the agent can handle
//      */
//     public void setExamples(String[] examples) {
//         this.examples = Arrays.copyOf(examples, examples.length);
//     }
// 
//     /**
//      * Set a single example of a request for the agent
//      *
//      * @param example  A single example request that the agent can handle
//      */
//     public void setExample(String example) {
//         this.examples = new String[1];
//         this.examples[0] = example;
//     }
// 
//     /**
//      * Get the name of the agent
//      *
//      * @return name of the agent
//      */
//     public String getName() {
//         return name;
//     }
// 
//     /**
//      * Set the name of the agent
//      *
//      * @param name  The name of the agent
//      */
//     public void setName(String name) {
//         this.name = name.toLowerCase();
//     }
// 
//     /**
//      * Get a default description
//      *
//      * @param clazz  The class of the agent
//      * @return default description
//      */
//     public static Description getUninitializedDescription(Class<?> clazz) {
//         String name = clazz.getCanonicalName();
//         return new Description(name, "Summary is not set.", "Example is not set.");
//     }
// }


import static org.junit.Assert.*;
import org.junit.Test;
import edu.jhuapl.dorset.agents.Description;
/*
 * Copyright 2016 The Johns Hopkins University Applied Physics Laboratory LLC
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.jhuapl.dorset.agents;




public class DescriptionTest {

    @Test
    public void testSetName() {
// Path: core/src/main/java/edu/jhuapl/dorset/agents/Description.java
// public class Description {
//     private String name;
//     private String summary;
//     private String[] examples;
// 
//     /**
//      * For java bean use only
//      */
//     public Description() {}
// 
//     /**
//      * Create an agent description
//      *
//      * @param name  Name of the agent
//      * @param summary  A user-facing description of the agent's capabilities
//      * @param example  An example question or command
//      */
//     public Description(String name, String summary, String example) {
//         this(name, summary, new String[]{example});
//     }
// 
//     /**
//      * Create an agent description
//      *
//      * @param name  Name of the agent
//      * @param summary  A user-facing description of the agent's capabilities
//      * @param examples  Array of example questions or commands
//      */
//     public Description(String name, String summary, String[] examples) {
//         this.setName(name);
//         this.setSummary(summary);
//         this.setExamples(examples);
//     }
// 
//     /**
//      * Copy a description
//      *
//      * @param description  agent description
//      */
//     public Description(Description description) {
//         this(description.getName(), description.getSummary(), description.getExamples());
//     }
// 
//     /**
//      * Get the summary
//      *
//      * @return the summary
//      */
//     public String getSummary() {
//         return summary;
//     }
// 
//     /**
//      * Set the summary
//      *
//      * @param summary  A description of the agent's capabilities
//      */
//     public void setSummary(String summary) {
//         this.summary = summary;
//     }
// 
//     /**
//      * Get the example requests for the agent
//      *
//      * @return examples of using the agent
//      */
//     public String[] getExamples() {
//         return examples.clone();
//     }
// 
//     /**
//      * Set several examples of requests for the agent
//      *
//      * @param examples  Array of example requests that the agent can handle
//      */
//     public void setExamples(String[] examples) {
//         this.examples = Arrays.copyOf(examples, examples.length);
//     }
// 
//     /**
//      * Set a single example of a request for the agent
//      *
//      * @param example  A single example request that the agent can handle
//      */
//     public void setExample(String example) {
//         this.examples = new String[1];
//         this.examples[0] = example;
//     }
// 
//     /**
//      * Get the name of the agent
//      *
//      * @return name of the agent
//      */
//     public String getName() {
//         return name;
//     }
// 
//     /**
//      * Set the name of the agent
//      *
//      * @param name  The name of the agent
//      */
//     public void setName(String name) {
//         this.name = name.toLowerCase();
//     }
// 
//     /**
//      * Get a default description
//      *
//      * @param clazz  The class of the agent
//      * @return default description
//      */
//     public static Description getUninitializedDescription(Class<?> clazz) {
//         String name = clazz.getCanonicalName();
//         return new Description(name, "Summary is not set.", "Example is not set.");
//     }
// }


// Path: core/src/test/java/edu/jhuapl/dorset/agents/DescriptionTest.java
import static org.junit.Assert.*;
import org.junit.Test;
import edu.jhuapl.dorset.agents.Description;

/*
 * Copyright 2016 The Johns Hopkins University Applied Physics Laboratory LLC
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.jhuapl.dorset.agents;




public class DescriptionTest {

    @Test
    public void testSetName() {
        Description d = new Description("Agent007", "test", "test");