Resource { public String getStatus() { return String.format("Status for: %-23s Download: %s, Extract: %s, Parse: %s", name, downloadStatus, extractStatus, parseStatus); } Resource(String name); String getName(); String getUrl(); void setUrl(String url); String getRemoteFileName(); void setRemoteFileName(String fileName); String getVersion(); void setVersion(String version); Class<? extends ResourceParser> getParserClass(); void setParserClass(Class<? extends ResourceParser> parserClass); String getExtractedFileName(); void setExtractedFileName(String extractedFileName); String getExtractionScheme(); void setExtractionScheme(String extractionScheme); void setDownloadStatus(ResourceOperationStatus downloadStatus); void setExtractStatus(ResourceOperationStatus extractStatus); void setParseStatus(ResourceOperationStatus parseStatus); String getParsedFileName(); void setParsedFileName(String parsedFileName); String getResourceGroupName(); void setResourceGroupName(String resourceGroupName); Class<? extends ResourceGroupParser> getResourceGroupParserClass(); void setResourceGroupParserClass(Class<? extends ResourceGroupParser> resourceGroupParserClass); ResourceOperationStatus getDownloadStatus(); ResourceOperationStatus getExtractStatus(); ResourceOperationStatus getParseStatus(); @Override int hashCode(); @Override boolean equals(Object obj); String getStatus(); @Override String toString();  }
@Test public void testGetStatus() { Resource instance = new Resource("test"); assertThat(instance.getStatus(), equalTo("Status for: test Download: UNTRIED, Extract: UNTRIED, Parse: UNTRIED")); }