@Test
public void testAdvertiseInNeighborhoodNotLoggedIn() {

    try {
        Syncbase.advertiseLoggedInUserInNeighborhood();
        fail("should throw because the user isn't logged in");
    } catch (SyncbaseException e) {
        // We expect the advertise attempt to throw.
    }
}