@Test public void testDeleteData() throws Exception { final String modifyDataMethodName = "modifyData"; final byte[] expectedBinaryData = null; final String expectedDataId = "id"; DataService tested = createPartialMock(DataService.class, modifyDataMethodName); expectPrivate(tested, modifyDataMethodName, expectedDataId, expectedBinaryData).andReturn(true); replay(tested); assertTrue(tested.deleteData(expectedDataId)); verify(tested); }
public boolean deleteData(final String dataId) { return modifyData(dataId, null); }
DataService { public boolean deleteData(final String dataId) { return modifyData(dataId, null); } }
DataService { public boolean deleteData(final String dataId) { return modifyData(dataId, null); }  }
DataService { public boolean deleteData(final String dataId) { return modifyData(dataId, null); }  boolean replaceData(final String dataId, final byte[] binaryData); boolean deleteData(final String dataId); }
DataService { public boolean deleteData(final String dataId) { return modifyData(dataId, null); }  boolean replaceData(final String dataId, final byte[] binaryData); boolean deleteData(final String dataId);  }