### Question:
DiagramLookupServiceImpl extends AbstractDiagramLookupService<Metadata, Diagram<Graph, Metadata>> { @Override protected boolean matches(final String criteria, final Diagram<Graph, Metadata> item) { final Map<String, String> criteriaMap = AbstractCriteriaLookupManager.parseCriteria(criteria); final String name = criteriaMap.get(DiagramLookupRequest.CRITERIA_NAME); if (null != name && name.trim().length() > 0) { return name.equals(item.getName()); } return true; } protected  DiagramLookupServiceImpl(); @Inject  DiagramLookupServiceImpl(final VFSLookupManager<Diagram<Graph, Metadata>> vfsLookupManager,
                                    final DiagramServiceImpl diagramService); @PostConstruct void init();  }### Answer:
@Test public void testMatches() { String criteria = DiagramLookupRequest.CRITERIA_NAME + "=" + NAME; String criteria1 = DiagramLookupRequest.CRITERIA_NAME + "=" + "name2"; String criteria2 = ""; assertTrue(tested.matches(criteria, diagram)); assertFalse(tested.matches(criteria1, diagram)); assertTrue(tested.matches(criteria2, diagram)); }