Description { public void setExamples(String[] examples) { this.examples = Arrays.copyOf(examples, examples.length); } Description();  Description(String name, String summary, String example);  Description(String name, String summary, String[] examples);  Description(Description description); String getSummary(); void setSummary(String summary); String[] getExamples(); void setExamples(String[] examples); void setExample(String example); String getName(); void setName(String name); static Description getUninitializedDescription(Class<?> clazz);  }
@Test public void testSetExamples() { Description d = new Description(); String[] examples = {"Where are you?", "What is this?"}; d.setExamples(examples); assertEquals(2, d.getExamples().length); assertArrayEquals(examples, d.getExamples()); }