@Test(expected = SoftwareNotFoundException.class)
public void should_throw_exception_when_software_is_not_compatible() throws Exception {

    Throwable notFound = new ResourceNotFoundException("not found");
    when(genericSoftwareClient.resource(anyString(), any(Class.class))).thenThrow(notFound);
    plugin.getSoftwareId(teamcityUrl, properties);
}