@Test(expected = IllegalStateException.class)
public void testThatAttachmentMustBePartOfTheRelease() throws TException {

    Release release = Mockito.mock(Release.class);
    handler.getLicenseInfoForAttachment(release, "123", user);
}