Source:
<code>public void testFetchChangesFeed() throws Exception { CronTaskConfigurationDto configuration = new CronTaskConfigurationDto(); configuration.setName(CRON_JOB_NAME); configuration.addProperty("jobClass", TestFetchRemoteChangesFeedCronJob.class.getName()); configuration.addProperty("cronExpression", "0 0 * ? * * *"); configuration.addProperty("storageId", STORAGE); configuration.addProperty("repositoryId", REPOSITORY); configuration.setImmediateExecution(true); cronTaskConfigurationService.saveConfiguration(configuration); Awaitility.await().timeout(EVENT_TIMEOUT_SECONDS, TimeUnit.SECONDS).untilAtomic(receivedExpectedEvent, org.hamcrest.Matchers.equalTo(1)); Selector<RemoteArtifactEntry> selector = new Selector<>(RemoteArtifactEntry.class); selector.where(Predicate.of(ExpOperator.EQ.of("storageId", STORAGE))) .and(Predicate.of(ExpOperator.EQ.of("repositoryId", REPOSITORY))) .and(Predicate.of(ExpOperator.EQ.of("artifactCoordinates.coordinates.name", "MiniMVC"))); OQueryTemplate<List<RemoteArtifactEntry>, RemoteArtifactEntry> queryTemplate = new OQueryTemplate<>( entityManager); List<RemoteArtifactEntry> artifactEntryList = queryTemplate.select(selector); <START> Assert.assertEquals(1, artifactEntryList.size()); <END> RemoteArtifactEntry artifactEntry = artifactEntryList.iterator().next(); Assert.assertFalse(artifactEntry.getIsCached()); Repository repository = configurationManagementService.getConfiguration().getRepository(STORAGE, REPOSITORY); NpmRemoteRepositoryConfiguration customConfiguration = (NpmRemoteRepositoryConfiguration) repository.getRemoteRepository() .getCustomConfiguration(); Assert.assertEquals(Long.valueOf(330), customConfiguration.getLastChangeId()); }</code><technical_language>Please, static imports</technical_language>

Target:
public void testFetchChangesFeed() throws Exception { CronTaskConfigurationDto configuration = new CronTaskConfigurationDto(); configuration.setName(CRON_JOB_NAME); configuration.addProperty("jobClass", TestFetchRemoteChangesFeedCronJob.class.getName()); configuration.addProperty("cronExpression", "0 0 * ? * * *"); configuration.addProperty("storageId", STORAGE); configuration.addProperty("repositoryId", REPOSITORY); configuration.setImmediateExecution(true); cronTaskConfigurationService.saveConfiguration(configuration); Awaitility.await().timeout(EVENT_TIMEOUT_SECONDS, TimeUnit.SECONDS).untilAtomic(receivedExpectedEvent, org.hamcrest.Matchers.equalTo(1)); Selector<RemoteArtifactEntry> selector = new Selector<>(RemoteArtifactEntry.class); selector.where(Predicate.of(ExpOperator.EQ.of("storageId", STORAGE))) .and(Predicate.of(ExpOperator.EQ.of("repositoryId", REPOSITORY))) .and(Predicate.of(ExpOperator.EQ.of("artifactCoordinates.coordinates.name", "MiniMVC"))); OQueryTemplate<List<RemoteArtifactEntry>, RemoteArtifactEntry> queryTemplate = new OQueryTemplate<>( entityManager); List<RemoteArtifactEntry> artifactEntryList = queryTemplate.select(selector); assertEquals(1, artifactEntryList.size()); RemoteArtifactEntry artifactEntry = artifactEntryList.iterator().next(); assertFalse(artifactEntry.getIsCached()); Repository repository = configurationManagementService.getConfiguration().getRepository(STORAGE, REPOSITORY); NpmRemoteRepositoryConfiguration customConfiguration = (NpmRemoteRepositoryConfiguration) repository.getRemoteRepository() .getCustomConfiguration(); assertEquals(Long.valueOf(330), customConfiguration.getLastChangeId()); }