public ScanCheckResultBean testScan(@Nonnull File file) throws TypeParsingException, ScanTestingException {
if (!file.exists()) {
throw new ScanFileNotFoundException("Scan file not found: " + file.getAbsolutePath());
}
ScannerType scannerType = bridge.getType(file);
if (scannerType == null) {
throw new TypeParsingException();
} else {
return bridge.testScan(scannerType, file);