### Question:
ProjectServiceImpl extends ServiceSupport implements ProjectService { public AbstractProject<?, ?> findProject(final UUID id) { checkNotNull(id, UUID.class); Job<?, ?> job = JobUuid.find(id); return (AbstractProject<?, ?>) job; } @Inject  ProjectServiceImpl(final SecurityService securityService); AbstractProject<?, ?> getProject(final UUID id); AbstractProject<?, ?> getProject(final String projectName); AbstractProject<?, ?> getProjectByFullName(final String projectName); AbstractProject<?, ?> findProject(final UUID id); AbstractProject<?, ?> findProject(final String projectName); AbstractProject<?, ?> findProjectByFullName(final String projectName); @SuppressWarnings("rawtypes") List<AbstractProject> getAllProjects(); T copyProject(final T src, final String targetProjectName); TopLevelItem createProjectFromXML(final String projectName, final InputStream xml); boolean projectExists(final String projectName); Collection<String> getProjectNames();  }### Answer:
@Test(expected = NullPointerException.class) public void findProjectByUUIDNullArg() { getInst().findProject((UUID) null); }
@Test public void findProjectByUUIDNotFound() { UUID id = UUID.randomUUID(); assertThat(getInst().findProject(id), nullValue()); }
@Test(expected = NullPointerException.class) public void findProjectByProjectNameNullArg() { getInst().findProject((String) null); }
@Test public void findProjectByProjectNameProjectNotFoundException() { assertThat(getInst().findProject("projectName"), nullValue()); }