### Question:
TagQuerySearchResult { public static TagQuerySearchResult instance(final String searchTags, final List<CollectionAndDataObjectListingEntry> queryResultEntries) throws JargonException { return new TagQuerySearchResult(searchTags, queryResultEntries); } private  TagQuerySearchResult(final String searchTags,
			final List<CollectionAndDataObjectListingEntry> queryResultEntries); static TagQuerySearchResult instance(final String searchTags,
			final List<CollectionAndDataObjectListingEntry> queryResultEntries); String getSearchTags(); List<CollectionAndDataObjectListingEntry> getQueryResultEntries(); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode();  }### Answer:
@Test public void testInstance() throws Exception { List<CollectionAndDataObjectListingEntry> entries = new ArrayList<CollectionAndDataObjectListingEntry>(); TagQuerySearchResult result = TagQuerySearchResult.instance("tags", entries); Assert.assertNotNull(result); }
@Test(expected = JargonException.class) public void testInstanceNoStrings() throws Exception { List<CollectionAndDataObjectListingEntry> entries = new ArrayList<CollectionAndDataObjectListingEntry>(); TagQuerySearchResult.instance("", entries); }
@Test(expected = JargonException.class) public void testInstanceNullStrings() throws Exception { List<CollectionAndDataObjectListingEntry> entries = new ArrayList<CollectionAndDataObjectListingEntry>(); TagQuerySearchResult.instance(null, entries); }
@Test(expected = JargonException.class) public void testInstanceNullEntries() throws Exception { TagQuerySearchResult.instance("xxxx", null); }