User implements Serializable { public boolean isError() { return error; } User();  User(boolean error); boolean isError(); void setError(boolean error); List<String> getResults(); void setResults(List<String> results);  }
@Test public void testUserConstructorHappyCase() { boolean userError = user.isError(); Assert.assertThat(userError,is(ERROR)); }