### Question:
PreviewChannelHelper { public void deletePreviewProgram(long programId) { mContext.getContentResolver().delete( TvContractCompat.buildPreviewProgramUri(programId), null, null); } PreviewChannelHelper(Context context);  PreviewChannelHelper(Context context, int urlConnectionTimeoutMillis,
            int urlReadTimeoutMillis); long publishChannel(@NonNull PreviewChannel channel); long publishDefaultChannel(@NonNull PreviewChannel channel); List<PreviewChannel> getAllChannels(); PreviewChannel getPreviewChannel(long channelId); void updatePreviewChannel(long channelId,
            @NonNull PreviewChannel update); void deletePreviewChannel(long channelId); long publishPreviewProgram(@NonNull PreviewProgram program); PreviewProgram getPreviewProgram(long programId); void updatePreviewProgram(long programId, @NonNull PreviewProgram update); void deletePreviewProgram(long programId); long publishWatchNextProgram(@NonNull WatchNextProgram program); WatchNextProgram getWatchNextProgram(long programId); void updateWatchNextProgram(@NonNull WatchNextProgram upgrade, long programId);  }### Answer:
@Test public void testDeletePreviewProgram() throws IOException { if (!Utils.hasTvInputFramework(InstrumentationRegistry.getContext())) { return; } PreviewChannelHelper helper = new PreviewChannelHelper(mContext); PreviewChannel.Builder channelBuilder = createFullyPopulatedPreviewChannel(); long channelId = helper.publishChannel(channelBuilder.build()); PreviewProgram.Builder programBuilder = createFullyPopulatedPreviewProgram(channelId); long programId = helper.publishPreviewProgram(programBuilder.build()); helper.deletePreviewProgram(programId); PreviewProgram programFromProvider = helper.getPreviewProgram(programId); assertNull(programFromProvider); }