@Test
public void shouldReadDataFromServerResponse() throws IOException {

	User user = new User("testUser", "testPassword");
	String json = "{  \"session\":  {  \"link\":  {  \"rel\":  \"session\",  \"uri\":  \"/sessions/83407cc8a01fb202f25458476e5cb36d\"  },  \"token\":  \"83407cc8a01fb202f25458476e5cb36d\"  },  \"db_key\":  \"6127d30bea89f2fb\",  \"organisation\":  \"N/A\"  }";
	user.read(json);
	assertThat(user.getDbKey(), equalTo("6127d30bea89f2fb"));
	assertThat(user.getOrganisation(), equalTo("N/A"));
}