class ScreenService extends BasicService implements OwnerAPISupport<Screen> {

	@GET
	@Path("/onboardings")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Screen> getOnboardings() {
		if (!isAdmin()) {
			throwUnauthorized();
		}

		return ScreenDAO.getOnboardings();
	}

}

class ScreenServiceTest extends BasicService {

	private PageService pageService;
	private PlaylistService playlistService;
	private ScreenService screenService;
	private FileService fileService;
	private Playlist playlist;

	@Test(expected = WebApplicationException.class)
	public void testUnauthorizedOnboarding() throws Exception {

		screenService.getOnboardings();
	}

}