### Question:
RemoteRemoveOp extends AbstractGeoGigOp<Remote> { public RemoteRemoveOp setName(String name) { this.name = name; return this; }  RemoteRemoveOp setName(String name); String getName();  }### Answer:
@Test public void testNullName() { final RemoteRemoveOp remoteRemove = repo.command(RemoteRemoveOp.class); assertThrows(RemoteException.class, remoteRemove.setName(null)::call); }
@Test public void testEmptyName() { final RemoteRemoveOp remoteRemove = repo.command(RemoteRemoveOp.class); assertThrows(RemoteException.class, remoteRemove.setName("")::call); }
@Test public void testRemoveNoRemotes() { final RemoteRemoveOp remoteRemove = repo.command(RemoteRemoveOp.class); assertThrows(RemoteException.class, remoteRemove.setName("remote")::call); }