test_class.file: common/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/common/service/FileTypeServiceTest.java
test_class.identifier: FileTypeServiceTest
test_case.body: @Test
      public void shouldCheckIfFileTypeIsPDF() throws Exception {
          FileTypeService service = new FileTypeService();
          File file = new File(getClass().getClassLoader().getResource("pdfexample.pdf").getPath());
          byte[] bytes = convertFileToBytes(file);
  
          assertThat(service.isPDF(bytes), equalTo(true));
      }
test_case.class_method_signature: FileTypeServiceTest.shouldCheckIfFileTypeIsPDF()
test_case.full_signature: @Test public void shouldCheckIfFileTypeIsPDF()
test_case.identifier: shouldCheckIfFileTypeIsPDF
test_case.invocations: getPath getResource getClassLoader getClass convertFileToBytes assertThat isPDF equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCheckIfFileTypeIsPDF()
focal_class.file: common/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/common/service/FileTypeService.java
focal_class.identifier: FileTypeService
focal_class.class_method_signature: FileTypeService.getType(byte[] data)
focal_class.full_signature: public String getType(byte[] data)
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: (byte[] data)
focal_class.return: String
focal_class.signature: String getType(byte[] data)
focal_class.class_method_signature: FileTypeService.isPDF(byte[] data)
focal_class.full_signature: public boolean isPDF(byte[] data)
focal_class.identifier: isPDF
focal_class.modifiers: public
focal_class.parameters: (byte[] data)
focal_class.return: boolean
focal_class.signature: boolean isPDF(byte[] data)
focal_class.class_method_signature: FileTypeService.isDataTypeEqualTo(byte[] data, String type)
focal_class.full_signature: private boolean isDataTypeEqualTo(byte[] data, String type)
focal_class.identifier: isDataTypeEqualTo
focal_class.modifiers: private
focal_class.parameters: (byte[] data, String type)
focal_class.return: boolean
focal_class.signature: boolean isDataTypeEqualTo(byte[] data, String type)
focal_method.body: public boolean isPDF(byte[] data) {
          return isDataTypeEqualTo(data, "application/pdf");
      }
focal_method.class_method_signature: FileTypeService.isPDF(byte[] data)
focal_method.full_signature: public boolean isPDF(byte[] data)
focal_method.identifier: isPDF
focal_method.invocations: isDataTypeEqualTo
focal_method.modifiers: public
focal_method.parameters: (byte[] data)
focal_method.return: boolean
focal_method.signature: boolean isPDF(byte[] data)