CowExecutor { public void setAlt(final String alt) { this.alt = alt; }  void setEyes(final String eyes); void setCowfile(final String cowfile); void setThink(final boolean think); void setTongue(final String tongue); void setWrap(final String wrap); void setMessage(final String message); void setMode(final String mode); void setLang(final String lang); void setHtml(final boolean html); void setAlt(final String alt); String execute();  }
@Test public void testSetAlt() { System.out.println("setAlt"); String alt = "A cow saying 'alt text in cowsay, seriously?'"; CowExecutor instance = new CowExecutor(); instance.setAlt(alt); String[] args = instance.buildArgs(); Assert.assertThat(Arrays.asList(args), CoreMatchers.hasItems("--alt", alt)); }