List<Long> ids = jmxDefinitionDataIdentDao.findIdForPlatformIdent(platformId, jmxDefinitionDataIdent, true); if (1 == ids.size()) { return ids.get(0).longValue();
boolean isWritable = true; when(jmxDefinitionDataIdentDao.findIdForPlatformIdent(eq(platformId), (JmxDefinitionDataIdent) anyObject(), anyBoolean())).thenReturn(Collections.<Long> emptyList()); Mockito.doAnswer(new Answer<Object>() { @Override verify(jmxDefinitionDataIdentDao, times(1)).findIdForPlatformIdent(eq(platformId), (JmxDefinitionDataIdent) anyObject(), eq(true)); verify(platformIdentCache, times(1)).markDirty(platformId);