### Question:
DefaultIdentifyProvider extends SolrBasedProvider implements IdentifyProvider { @Override public Identify provideIdentify() throws OaiPmhException { Identify identify = new Identify(); identify.setBaseURL(baseURL); identify.setAdminEmail(adminEmail); identify.setCompression(compression); identify.setDeletedRecord(deletedRecord); identify.setEarliestDatestamp(getEarliestTimestamp()); identify.setGranularity(granularity); identify.setProtocolVersion(protocolVersion); identify.setRepositoryName(repositoryName); return identify; }  @Override Identify provideIdentify();  }### Answer:
@Test public void provideIdentify() throws OaiPmhException, IOException, SolrServerException { QueryResponse response = getResponse(IDENTIFY); Mockito.when(solrClient.query(Mockito.any(SolrParams.class))).thenReturn(response); Identify identify = defaultIdentifyProvider.provideIdentify(); assertEquals(REPOSITORY_NAME, identify.getRepositoryName()); assertEquals(BASE_URL, identify.getBaseURL()); assertEquals(PROTOCOL_VERSION, identify.getProtocolVersion()); assertEquals(EARLIEST_DATESTAMP, identify.getEarliestDatestamp()); assertEquals(DELETED_RECORD, identify.getDeletedRecord()); assertEquals(1, identify.getAdminEmail().length); assertEquals(ADMIN_EMAIL, identify.getAdminEmail()[0]); assertEquals(1, identify.getCompression().length); assertEquals(COMPRESSION, identify.getCompression()[0]); }