### Question:
DevicePrintService { public boolean hasRequiredAttributes(DevicePrint devicePrint) { return devicePrintAuthenticationConfig.hasRequiredAttributes(devicePrint); } DevicePrintService(DevicePrintAuthenticationConfig devicePrintAuthenticationConfig,
            UserProfilesDao userProfilesDao, DevicePrintExtractorFactory extractorFactory,
            DevicePrintComparator devicePrintComparator); boolean hasRequiredAttributes(DevicePrint devicePrint); DevicePrint getDevicePrint(HttpServletRequest request); UserProfile getBestMatchingUserProfile(DevicePrint devicePrint); void createNewProfile(DevicePrint devicePrint); void updateProfile(UserProfile profile, DevicePrint devicePrint);  }### Answer:
@Test public void shouldCheckHasRequiredAttributes() { DevicePrint devicePrint = mock(DevicePrint.class); devicePrintService.hasRequiredAttributes(devicePrint); verify(devicePrintAuthenticationConfig).hasRequiredAttributes(devicePrint); }