### Question:
UserEntity { public String getUserName() { return mUserName; } @Ignore  UserEntity(String userName, String password);  UserEntity(@NonNull String id, String userName, String password); String getId(); String getUserName(); String getPassword();  }### Answer:
@Test public void getUserName() { UserEntity ue = new UserEntity( userName, pass); UserEntity ue2 = new UserEntity( id, userName, pass); assertNotNull(ue.getUserName()); assertNotNull(ue2.getUserName()); assertEquals( ue.getUserName(), userName); assertEquals( ue2.getUserName(), userName); }