Court case to test limits of press freedom