CodeSample { public String getId() { return id; } CodeSample(final String sampleId, final String serviceName); String getId(); String getServiceName(); String getTitle(); String getDescription(); String getFormattedCode(); void setTitle(final String title); void setDescription(final String description); void appendLine(final String line);  }
@Test public void getId() { CodeSample sample = new CodeSample("ID", "Service"); assertEquals(sample.getId(), "ID"); }