### Question:
VObjectData extends APIData<VObject> { public static boolean isNameValid(String inName) { final boolean seemsOk = VObjectData.VALID_EMAIL_PATTERN.matcher(inName).matches(); if (seemsOk && (inName.indexOf("..", 0) > 0)) { return false; } return seemsOk; } VObjectData(VObject inObject); static VObjectData getData(VObject inVObject); long getId(); String getObject_login(); UserData getOwner(); boolean hasInbox(); static VObjectData findByAPIId(String inAPIId, String inAPIKey); Date getCreationDate(); String getTimeZone(); Date getLastPing(); int getState(); int getMode(); String getSerial(); static List<VObjectData> findByOwner(UserData inOwner); static List<VObjectData> findLastCreatedByType(int count, ObjectType inType); static VObjectData findByName(String inObjectName); static VObjectData findBySerial(String inObjectSerial); ObjectType getObjectType(); void setName(String theName); ObjectProfileData getProfile(); ObjectPreferencesData getPreferences(); boolean isAsleep(); boolean isAwaken(); boolean isDisconnected(); ObjectSleepData getSleepObject(int inDay); static List<VObjectData> searchObjects(String inName, ObjectType inObjectType, String inCity, String inCountry, int skip, int count); void setPreferences(boolean inNotifyReceived, TimezoneData theTimezone, SleepTime inSleepTime); VObject getReference(); static List<VObjectData> checkObject(List<String> inObjectList, UserData inUserSender, String apiKey); static VObjectData createObject(ObjectType inObjectType, String inSerial, String inLabel, UserData inUser, String inLocation); static boolean isNameValid(String inName); void setSerial(String serial); TimeZone getJavaTimeZone(); void addDefaultServices(); boolean isDuplicated(); String getLocation(); static VObjectData find(long id); String getEmailAddress(); void changeStatus(int status); boolean isCurrentlyRecipient(); void setLastActivityTime();  }### Answer:
@Test public void checkNameTest() { final String tooShort = StringShop.EMPTY_STRING; final String tooLong = "azerttyyuuiopmljkjhfssqsfgfdbvcnbvcnsfghsghsfghsdfgsdfgdgddgzrhzthsdfgsdfertezryrturyiytjdfghsdfqdqfgzerdfbsxcvbsdfsdrh"; Assert.assertFalse(VObjectData.isNameValid(tooLong)); Assert.assertFalse(VObjectData.isNameValid(tooShort)); Assert.assertFalse(VObjectData.isNameValid("roger.")); Assert.assertFalse(VObjectData.isNameValid("pompéi")); Assert.assertFalse(VObjectData.isNameValid("john..doe")); Assert.assertTrue(VObjectData.isNameValid("marilyn.monroe")); Assert.assertTrue(VObjectData.isNameValid("45DarthVader45")); Assert.assertTrue(VObjectData.isNameValid("45DarthVader")); Assert.assertTrue(VObjectData.isNameValid("DarthVader-45")); }