### Question:
SifIdResolverCustomData implements SifIdResolver { @Override public String getSliGuid(String sifId, String zoneId) { synchronized (lock) { Entity entity = getSliEntity(sifId, zoneId); if (entity == null) { LOG.info("No sli id found for sifId(" + sifId + ")"); return null; } return entity.getId(); } }  @Override String getSliGuid(String sifId, String zoneId); @Override List<String> getSliGuidList(String sifId, String zoneId); @Override String getSliGuidByType(String sifId, String sliType, String zoneId); @Override List<String> getSliGuidListByType(String sifId, String sliType, String zoneId); @Override Entity getSliEntityByType(String sifId, String sliType, String zoneId); @Override List<Entity> getSliEntityListByType(String sifId, String sliType, String zoneId); @Override Entity getSliEntity(String sifId, String zoneId); @Override List<Entity> getSliEntityList(String sifId, String zoneId); @Override String getZoneSea(String zoneId); @Override void putSliGuid(String sifId, String sliType, String sliId, String zoneId); @Override Entity getSliEntityFromOtherSifId(String sifId, String sliType, String zoneId); @Override void putSliGuidForOtherSifId(String sifId, String sliType, String sliId, String zoneId);  }### Answer:
@Test public void getSliGuidShouldFindGuid() throws Exception { setupCustomDataMocking(); Entity expected = Mockito.mock(Entity.class); when(expected.getId()).thenReturn(SLI_ID1); List<Entity> queryResult = Arrays.asList(new Entity[] { expected }); when(mockSlcInterface.read(eq(SLI_TYPE1), any(Query.class))).thenReturn(queryResult); String result = resolver.getSliGuid(SIF_REF_ID1, ZONE_ID1); assertEquals(SLI_ID1, result); }
@Test public void getSliGuidShouldHandleNull() throws Exception { setupCustomDataMocking(); List<Entity> queryResult = Collections.emptyList(); when(mockSlcInterface.read(eq(SLI_TYPE1), any(Query.class))).thenReturn(queryResult); String result = resolver.getSliGuid(SIF_REF_ID1, ZONE_ID1); Assert.assertNull(result); }