public void testIsAuthorUserIdNull() throws Exception {
mockStatic(User.class);
User user = createMock(User.class);
expect(user.getId()).andReturn(null);
expect(User.current()).andReturn(user);
Job job = createMock(FreeStyleProject.class);
expect(job.getCreatedBy()).andReturn(USER).times(2);
replay(User.class, user, job);
boolean result = Functions.isAuthor(job);
verify(User.class, user, job);
assertFalse(result);
}