### Question:
RepositoryCommonValidations { public static boolean checkUserInfo( IUser user ) { return !StringUtils.isBlank( user.getLogin() ) && !StringUtils.isBlank( user.getName() ); }  static boolean checkUserInfo( IUser user ); static IUser normalizeUserInfo( IUser user );  }### Answer:
@Test( expected = NullPointerException.class ) public void checkUserInfo_Null() { RepositoryCommonValidations.checkUserInfo( null ); }
@Test public void checkUserInfo_LoginIsNull() { assertFalse( RepositoryCommonValidations.checkUserInfo( user( null, "name" ) ) ); }
@Test public void checkUserInfo_LoginIsBlank() { assertFalse( RepositoryCommonValidations.checkUserInfo( user( "", "name" ) ) ); }
@Test public void checkUserInfo_LoginContainsSpaces() { assertFalse( RepositoryCommonValidations.checkUserInfo( user( " \t\n ", "name" ) ) ); }
@Test public void checkUserInfo_BothAreMeaningful() { assertTrue( RepositoryCommonValidations.checkUserInfo( user( "login", "name" ) ) ); }