@Test
public void deletePostReturnsFromService() {

    String id = "id1231";
    when(service.deletePost(id)).thenReturn(Observable.<Void>empty());
    TestSubscriber<Void> ts = new TestSubscriber<>();
    network.deletePost(id).subscribe(ts);
    ts.assertNoErrors();
    ts.assertCompleted();
}