### Question:
ResultSetSourceInfo extends AbstractSourceInfo { @Override public String toString() { return String.format("ResultSet with SourceId: %s", getSourceId()); } ResultSetSourceInfo(ResultSet resultSet);  ResultSetSourceInfo(ResultSet resultSet, UUID sourceId); ResultSet getResultSet(); @SuppressWarnings("WeakerAccess") void setResultSet(ResultSet resultSet); @Override String toString(); void validate();  }### Answer:
@Test @DisplayName("test object toString") void toString_Success() { ResultSet mockResultSet = Mockito.mock(ResultSet.class); UUID uuid = UUID.randomUUID(); ResultSetSourceInfo resultSetSourceInfo = new ResultSetSourceInfo(mockResultSet, uuid); Assertions.assertTrue(resultSetSourceInfo.toString().contains(uuid.toString())); }