boolean (String platformId) { IdeaPluginDependency platformDependencyMock = EasyMock.niceMock(IdeaPluginDependency.class); expect(platformDependencyMock.getPluginId()).andReturn(PluginId.getId(platformId)); replay(platformDependencyMock); IdeaPluginDescriptor mock = EasyMock.niceMock(IdeaPluginDescriptor.class); expect(mock.getSinceBuild()).andReturn(null).anyTimes(); expect(mock.getUntilBuild()).andReturn(null).anyTimes(); expect(mock.getDependencies()).andReturn(Collections.singletonList(platformDependencyMock)).anyTimes(); replay(mock); return PluginManagerCore.checkBuildNumberCompatibility(mock, BuildNumber.fromString("145")) == null; }