*/
public class NativeMockingSampleTest {
@Test
public void testMockNative() throws Exception {
NativeService nativeServiceMock = createMock(NativeService.class);
NativeMockingSample tested = new NativeMockingSample(nativeServiceMock);
final String expectedParameter = "question";
final String expectedReturnValue = "answer";
expect(nativeServiceMock.invokeNative(expectedParameter)).andReturn(expectedReturnValue);
replay(nativeServiceMock);
assertEquals(expectedReturnValue, tested.invokeNativeMethod(expectedParameter));