@Test
public void testGetNextAvailableNameWithExistingNumber() throws Exception {

    String name = "foo19";
    PowerMockito.spy(Util.class);
    PowerMockito.doReturn(false).when(Util.class, "doesSurveyExist", null, "foo20");
    String next = Util.getNextAvailableName(null, name);
    Assert.assertEquals("foo20", next);
}