RetrievedCodeSample { public RetrievedCodeSample(final String id, final String service, final String title, final String description, final String content) { this.id = ValidationUtils.assertInputNotEmpty(id, "Sample ID must be provided"); this.service = ValidationUtils.assertInputNotEmpty(service, "Sample service name must be provided"); this.title = ValidationUtils.assertInputNotEmpty(title, "Sample title must be provided"); this.description = ValidationUtils.assertInputNotEmpty(description, "Sample description must be provided"); this.content = ValidationUtils.assertInputNotEmpty(content, "Sample content must be provided"); } RetrievedCodeSample(final String id, final String service,
            final String title, final String description, final String content); String getId(); String getService(); String getTitle(); String getDescription(); String getContent();  }
@Test public void testRetrievedCodeSample() { RetrievedCodeSample sample = new RetrievedCodeSample(SAMPLE_ID, SERVICE_NAME, TITLE, DESCRIPTION, CONTENT); assertEquals(SAMPLE_ID, sample.getId()); assertEquals(SERVICE_NAME, sample.getService()); assertEquals(TITLE, sample.getTitle()); assertEquals(DESCRIPTION, sample.getDescription()); assertEquals(CONTENT, sample.getContent()); }