### Question:
ResourceLookupImpl implements ResourceLookup, Serializable { public void setURIString(String uri) { this.uri = null; this.name = getNameFromUri(uri); this.folderUri = getParentFolderFromUri(uri); } ResourceLookupImpl(); String getName(); String getLabel(); String getDescription(); void setDescription(String description); List getAttributes(); void setAttributes(List attrs); void setLabel(String label); void setName(String name); String getURIString(); String getURI(); String getParentURI(); String getParentPath(); String getPath(); String getProtocol(); String getParentFolder(); void setParentFolder(Folder folder); void setParentFolder(String folderURI); void setURI(String uri); int getVersion(); void setVersion(int version); String getResourceType(); void setResourceType(String resourceType); Date getCreationDate(); void setCreationDate(Date creationDate); Date getUpdateDate(); void setUpdateDate(Date updateDate); Date getLastAccessTime(); boolean isNew(); void setURIString(String uri); boolean isSameType(Resource resource); @Override boolean equals(Object o); @Override Serializable getIdentifier(); @Override String getType(); @Override int hashCode(); @Override void accept(ResourceVisitor visitor);  }### Answer:
@Test public void setURIString() { resourceLookup.setURIString("/organization/test_folder/test_resource1"); assertEquals("Wrong parent folder URI", "/organization/test_folder", resourceLookup.getParentFolder()); assertEquals("Wrong name", "test_resource1", resourceLookup.getName()); resourceLookup.setURIString("/organization/test_resource2"); assertEquals("Wrong parent folder URI", "/organization", resourceLookup.getParentFolder()); assertEquals("Wrong name", "test_resource2", resourceLookup.getName()); resourceLookup.setURIString("/test_resource3"); assertEquals("Wrong parent folder URI", "/", resourceLookup.getParentFolder()); assertEquals("Wrong name", "test_resource3", resourceLookup.getName()); resourceLookup.setURIString("test_resource3"); assertEquals("Wrong parent folder URI", null, resourceLookup.getParentFolder()); assertEquals("Wrong name", null, resourceLookup.getName()); resourceLookup.setURIString(null); assertEquals("Wrong parent folder URI", null, resourceLookup.getParentFolder()); assertEquals("Wrong name", null, resourceLookup.getName()); }