MetaWeblog { public boolean deletePost(String postid) throws XmlRpcException { Object[] pParams = {configInfo.getAppKey(), postid, configInfo.getUserName(), configInfo.getPassword(), true}; return (boolean) this.xmlRpcExecute.execute(configInfo.getServerUrl(), "blogger.deletePost", pParams); } MetaWeblog(); String newPost(String blogid, Post post, boolean publish); boolean editPost(Post post, boolean publish); @SuppressWarnings("unchecked") Post getPost(String postid); boolean deletePost(String postid); void setConfigInfo(ConfigInfo configInfo); ConfigInfo getConfigInfo();  }
@Test public void deletePost() throws Exception { when(xmlRpcClient.execute(anyString(), any(Object[].class))).thenReturn(true); assertThat(metaWeblog.deletePost("1")).isTrue(); }