@Test
public void testServiceProvider_found() throws Exception {
final String methodNameToMock = "getAllServiceProducers";
final int expectedServiceProducerId = 1;
final ServiceProducer expected = new ServiceProducer(expectedServiceProducerId, "mock name");
final Set<ServiceProducer> serviceProducers = new HashSet<ServiceProducer>();
serviceProducers.add(expected);
tested = createPartialMock(ProviderServiceImpl.class, methodNameToMock);
expectPrivate(tested, methodNameToMock).andReturn(serviceProducers);
replayAll();
ServiceProducer actual = tested.getServiceProvider(expectedServiceProducerId);
verifyAll();
assertSame(expected, actual);
}