### Question:
GpHosterClient { public CREATE_USER_RESULT userCreate(String username, String email) throws IOException { SwingUtil.checkNotOnEDT(); int code = sendRESTint(METHOD.GET.toString(), CREATE_USER_PATH + username + "?email=" + email, null, MASTUSER, MASTPASSWD); if (code == SC_OK) return CREATE_USER_RESULT.CREATED_PWDSENT; if (code == 401) return CREATE_USER_RESULT.EXITSALREADY_PWDSENT; return CREATE_USER_RESULT.ERROR; } GpHosterClient(GpHosterServerSettings serverDesc);  GpHosterClient(); void setUserName(String userName); String getUserName(); void setPassword(String password); String getPassword(); boolean userExists(); boolean atlasBasenameFree(String baseName); boolean userDelete(String delUser, String delUserPassword); boolean userDelete(); CREATE_USER_RESULT userCreate(String username, String email); AtlasFingerprint informAboutUploadedZipFile(String atlasBasename,
			File zipFile); boolean canEditAtlas(String atlasBasename); AtlasFingerprint informAboutUploadedZipFile(String atlasBasename,
			File zipFile, String username, String password); String sendRESTstring(String method, String url,
			String xmlPostContent, String username, String password); String sendRESTstring(String method, String urlEncoded,
			String postData, String contentType, String accept,
			String username, String password); boolean userExists(String checkUsername); AtlasFingerprint atlasFingerprint(String atlasBasename); SERVICE_STATUS checkService(); String getFtpHostname(); void setFtpHostname(String ftphostname); GpHosterServerSettings getServerSettings(); boolean validateCredentials(); String getUrlForAtlas(String basename); static final String DEFAULT_GPHOSTER_REST_URL; static final String DEFAULT_GPHOSTER_FTP_HOSTNAME; static final String DEFAULt_GPHOSTER_FTP_URL; }### Answer:
@Test public void testUserCreate() throws IOException { if (gphc.checkService() != SERVICE_STATUS.OK) return; final String testUsername = "testUser" + System.currentTimeMillis(); assertFalse(gphc.userExists(testUsername)); assertEquals(CREATE_USER_RESULT.CREATED_PWDSENT, gphc.userCreate(testUsername, "tzeggai@wikisquare.de")); assertTrue(gphc.userExists(testUsername)); assertEquals("On the second try the username is not free anymore", CREATE_USER_RESULT.EXITSALREADY_PWDSENT, gphc.userCreate(testUsername, "tzeggai@wikisquare.de")); }