### Question:
JobAction implements Action, AsyncTrendChart { public Job<?, ?> getOwner() { return owner; } @Deprecated  JobAction(final Job<?, ?> owner, final StaticAnalysisLabelProvider labelProvider);  JobAction(final Job<?, ?> owner, final StaticAnalysisLabelProvider labelProvider, final int numberOfTools);  JobAction(final Job<?, ?> owner, final StaticAnalysisLabelProvider labelProvider, final int numberOfTools,
            final TrendChartType trendChartType); String getId(); @Override String getDisplayName(); String getTrendName(); Job<?, ?> getOwner(); History createBuildHistory(); @Override @CheckForNull String getIconFileName(); @Override String getUrlName(); @SuppressWarnings("unused") // Called by jelly view void doIndex(final StaplerRequest request, final StaplerResponse response); Optional<ResultAction> getLatestAction(); @JavaScriptMethod @Override String getBuildTrendModel(); @SuppressWarnings("unused") // Called by jelly view @Override boolean isTrendVisible(); @Override String toString();  }### Answer:
@Test void shouldSetOwner() { Job<?, ?> job = mock(Job.class); StaticAnalysisLabelProvider labelProvider = mock(StaticAnalysisLabelProvider.class); JobAction action = new JobAction(job, labelProvider, 1); assertThat(action.getOwner()).isEqualTo(job); }