</BUG>
private JobView view;
@Test
public void delegates_the_process_of_determining_the_relative_job_name() {
<BUG>when(relative.name()).thenReturn(theName);

view = JobView.of(

a(job().withName(theName)),

withDefaultConfig(),
relative);</BUG>
assertThat(view.name(), is(theName));

import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
public class JobViewTest {
private static final String theName = "some-TLAs-followed-by-a-project-name";
private static final String displayName = "Pretty name that has some actual meaning";
private RelativeLocation relativeLocation = mock(RelativeLocation.class); // TODO recipe builder
private JobView view;
@Test
public void delegates_the_process_of_determining_the_relative_job_name() {
when(relativeLocation.name()).thenReturn(theName);
view = a(jobView().of(
a(job().withName(theName)))
.with(relativeLocation));
assertThat(view.name(), is(theName));
