}
@Test
public void testThreadNotSafe() throws Throwable {
final IMethods mock = createMock(IMethods.class);
expect(mock.oneArg("test")).andReturn("result").times(THREAD_COUNT);
makeThreadSafe(mock, false);
checkIsUsedInOneThread(mock, true);
replay(mock);
final Callable<String> replay = new Callable<String>() {
public String call() throws Exception {
return mock.oneArg("test");
}
};
final ExecutorService service = Executors.newFixedThreadPool(THREAD_COUNT);