File size: 68,479 Bytes
d086025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,120 @@
+import hashlib
+import json
+from typing import List
+
+import pytest
+
+from app.uniprot.schema import UniprotSummary
+from tests.utils import StubResponse
+
+
+class AsyncResult:
+    def __init__(self, status, result):
+        self.result = result
+        self.status = status
+
+    def get(self):
+        return self.result
+
+
+@pytest.fixture(scope="session")
+def invalid_uniprot():
+    return "X0"
+
+
+@pytest.fixture(scope="session")
+def valid_uniprot():
+    return "P0DTD1"
+
+
+@pytest.fixture(scope="session")
+def valid_uniprot_structures():
+    valid_structures = []
+    valid_structures.append(StubResponse(status_code=200, stub_for="uniprot"))
+    return valid_structures
+
+
+@pytest.fixture(scope="session")
+def valid_uniprot_structures_summary():
+    valid_structures = []
+    valid_structures.append(StubResponse(status_code=200, stub_for="uniprot_summary"))
+    return valid_structures
+
+
+@pytest.fixture(scope="session")
+def registry():
+    with open("tests/stubs/registry.json") as fp:
+        data = json.load(fp)
+        return data
+
+
+@pytest.fixture(scope="session")
+def valid_gifts_response():
+    with open("tests/stubs/gifts_response.json") as fp:
+        data = json.load(fp)
+        return data
+
+
+@pytest.fixture(scope="session")
+def valid_annotation_response():
+    with open("tests/stubs/annotations_response.json") as fp:
+        data = json.load(fp)
+        return data
+
+
+@pytest.fixture(scope="session")
+def valid_uniprot_list_summary():
+    return StubResponse(status_code=200, stub_for="uniprot_list_summary")
+
+
+@pytest.fixture(scope="session")
+def seq_search_response():
+    return StubResponse(status_code=200, stub_for="seq_search_response")
+
+
+@pytest.fixture(scope="session")
+def sample_sequence():
+    return "MVLSEGEWQLVLHVWAKVEADVAGHGQDILIRLFKSH"
+
+
+@pytest.fixture(scope="session")
+def sample_sequence_hash():
+    return hashlib.md5("MVLSEGEWQLVLHVWAKVEADVAGHGQDILIRLFKSH".encode()).hexdigest()
+
+
+@pytest.fixture(scope="session")
+def uniprot_summary_obj_list():
+    summary_results: List[UniprotSummary] = []
+
+    with open("tests/stubs/uniprot_list_summary.json") as f:
+        for item in json.load(f):
+            summary_results.append(UniprotSummary(**item))
+
+    return summary_results
+
+
+@pytest.fixture(scope="session")
+def uniprot_details():
+    with open("tests/stubs/uniprot.json") as f:
+        return json.load(f)
+
+
+@pytest.fixture(scope="session")
+def uniprot_summary():
+    with open("tests/stubs/uniprot_summary.json") as f:
+        return json.load(f)
+
+
+@pytest.fixture(scope="session")
+def pending_async_result():
+    return AsyncResult("PENDING", None)
+
+
+@pytest.fixture(scope="session")
+def failed_async_result():
+    return AsyncResult("FAILURE", None)
+
+
+@pytest.fixture(scope="session")
+def finished_none_async_result():
+    return AsyncResult("SUCCESS", None)
diff --git a/tests/test_cli.py b/tests/test_cli.py
new file mode 100644
--- /dev/null
+++ b/tests/test_cli.py
@@ -0,0 +1,14 @@
+import pytest
+from click.testing import CliRunner
+
+from app import cli
+
+
+@pytest.fixture(scope="module")
+def runner():
+    return CliRunner()
+
+
+def test_main(runner):
+    result = runner.invoke(cli.main, ["--help"])
+    assert result.exit_code == 0
diff --git a/tests/test_health.py b/tests/test_health.py
new file mode 100644
--- /dev/null
+++ b/tests/test_health.py
@@ -0,0 +1,109 @@
+from unittest.mock import AsyncMock, patch
+
+import pytest
+from fastapi import FastAPI, status
+from starlette.testclient import TestClient
+
+from app.health.health import health_route
+
+app = FastAPI()
+app.include_router(health_route, prefix="/health")
+
+
+@pytest.fixture
+def client():
+    return TestClient(app)
+
+
+@pytest.mark.asyncio
+@patch("app.health.health.get_services")
+@patch("app.health.health.get_base_service_url")
+@patch("app.health.health.get_final_service_url")
+@patch("app.health.health.send_async_requests", new_callable=AsyncMock)
+async def test_health_check_success(
+    mock_send_async_requests,
+    mock_get_final_service_url,
+    mock_get_base_service_url,
+    mock_get_services,
+    client,
+):
+    # Mock service discovery
+    mock_get_services.return_value = [
+        {"provider": "pdbe", "accessPoint": "/api/health"}
+    ]
+    mock_get_base_service_url.return_value = "http://mocked"
+    mock_get_final_service_url.return_value = "http://mocked/api/health"
+
+    # Mock response from downstream service
+    class MockResponse:
+        status_code = status.HTTP_200_OK
+
+        def json(self):
+            return [
+                {
+                    "status": "pass",
+                    "service_id": "pdbe",
+                    "beacons_api_version": "2.7.0",
+                    "output": "",
+                }
+            ]
+
+    mock_send_async_requests.return_value = [MockResponse()]
+
+    response = client.get("/health/")
+    assert response.status_code == status.HTTP_200_OK
+    assert response.headers["content-type"].startswith("application/health+json")
+    assert response.json() == [
+        {
+            "status": "pass",
+            "service_id": "pdbe",
+            "beacons_api_version": "2.7.0",
+            "output": "",
+        }
+    ]
+
+
+@pytest.mark.asyncio
+@patch("app.health.health.get_services")
+@patch("app.health.health.get_base_service_url")
+@patch("app.health.health.get_final_service_url")
+@patch("app.health.health.send_async_requests", new_callable=AsyncMock)
+async def test_health_check_failure(
+    mock_send_async_requests,
+    mock_get_final_service_url,
+    mock_get_base_service_url,
+    mock_get_services,
+    client,
+):
+    mock_get_services.return_value = [
+        {"provider": "pdbe", "accessPoint": "/api/health"}
+    ]
+    mock_get_base_service_url.return_value = "http://mocked"
+    mock_get_final_service_url.return_value = "http://mocked/api/health"
+
+    class MockResponse:
+        status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
+
+        def json(self):
+            return [
+                {
+                    "status": "fail",
+                    "service_id": "pdbe",
+                    "beacons_api_version": "2.7.0",
+                    "output": "Service is unhealthy, not able to reach the backend!",
+                }
+            ]
+
+    mock_send_async_requests.return_value = [MockResponse()]
+
+    response = client.get("/health/")
+    assert response.status_code == status.HTTP_500_INTERNAL_SERVER_ERROR
+    assert response.headers["content-type"].startswith("application/health+json")
+    assert response.json() == [
+        {
+            "status": "fail",
+            "service_id": "pdbe",
+            "beacons_api_version": "2.7.0",
+            "output": "Service is unhealthy, not able to reach the backend!",
+        }
+    ]
diff --git a/tests/test_hub.py b/tests/test_hub.py
new file mode 100644
--- /dev/null
+++ b/tests/test_hub.py
@@ -0,0 +1,110 @@
+import asyncio
+
+import pytest
+from async_asgi_testclient import TestClient
+from starlette import status
+
+from app.app import app
+
+client = TestClient(app)
+
+
+# Using 'with TestClient' to test the startup and shutdown events
+@pytest.mark.asyncio
+async def test_get_uniprot_api(mocker, valid_uniprot, uniprot_details, registry):
+    async with TestClient(app) as client:
+        future = asyncio.Future()
+        future.set_result(uniprot_details)
+        mocker.patch(
+            "app.uniprot.helper.get_services", return_value=registry["services"]
+        )
+        mocker.patch("app.uniprot.uniprot.get_uniprot_helper", return_value=future)
+        mocker.patch(
+            "app.uniprot.helper.get_base_service_url", return_value="http://test"
+        )
+        response = await client.get(f"/uniprot/{valid_uniprot}.json")
+        assert response.status_code == status.HTTP_200_OK
+
+
+@pytest.mark.asyncio
+async def test_get_uniprot_summary_api(
+    mocker, valid_uniprot, uniprot_summary, registry
+):
+    future = asyncio.Future()
+    future.set_result(uniprot_summary)
+    mocker.patch("app.uniprot.helper.get_services", return_value=registry["services"])
+    mocker.patch("app.uniprot.uniprot.get_uniprot_summary_helper", return_value=future)
+    mocker.patch("app.uniprot.helper.get_base_service_url", return_value="http://test")
+    response = await client.get(f"/uniprot/summary/{valid_uniprot}.json")
+    assert response.status_code == status.HTTP_200_OK
+
+
+@pytest.mark.asyncio
+async def test_get_uniprot_summaries_api(mocker, uniprot_summary_obj_list, registry):
+    future = asyncio.Future()
+    future.set_result(uniprot_summary_obj_list)
+    mocker.patch("app.uniprot.helper.get_services", return_value=registry["services"])
+    mocker.patch(
+        "app.uniprot.uniprot.get_list_of_uniprot_summary_helper", return_value=future
+    )
+    mocker.patch("app.uniprot.helper.get_base_service_url", return_value="http://test")
+    response = await client.post(
+        "/uniprot/summary", json={"accessions": ["P12345", "P23456"]}
+    )
+
+    assert response.status_code == status.HTTP_200_OK
+
+
+@pytest.mark.asyncio
+async def test_get_ensembl_summaries_api(
+    mocker,
+    valid_gifts_response,
+    uniprot_summary_obj_list,
+):
+    mocker.patch(
+        "app.ensembl.ensembl.get_ensembl_mappings", return_value=valid_gifts_response
+    )
+
+    mocker.patch(
+        "app.ensembl.ensembl.get_list_of_uniprot_summary_helper",
+        return_value=uniprot_summary_obj_list,
+    )
+    mocker.patch(
+        "app.ensembl.ensembl.get_uniprot_api_results",
+        return_value={},
+    )
+    mocker.patch(
+        "app.ensembl.ensembl.get_uniprot_name",
+        return_value="Test protein",
+    )
+
+    response = await client.get(
+        "/ensembl/summary/ENSG00000288864.json",
+    )
+
+    assert response.status_code == status.HTTP_200_OK
+    response_json = response.json()
+    assert response_json["uniprot_mappings"]
+    assert all(
+        isinstance(mapping["ensembl_transcript"]["transcript_id"], str)
+        for mapping in response_json["uniprot_mappings"]
+    )
+
+
+@pytest.mark.asyncio
+async def test_annotations_api(
+    mocker, valid_annotation_response, registry, valid_uniprot
+):
+    future = asyncio.Future()
+    future.set_result(valid_annotation_response)
+    mocker.patch(
+        "app.annotations.annotations.get_services", return_value=registry["services"]
+    )
+    mocker.patch(
+        "app.annotations.annotations.get_annotations_api_helper", return_value=future
+    )
+    mocker.patch(
+        "app.annotations.annotations.get_base_service_url", return_value="http://test"
+    )
+    response = await client.get(f"/annotations/{valid_uniprot}.json?type=DOMAIN")
+    assert response.status_code == status.HTTP_200_OK
diff --git a/tests/test_sequence.py b/tests/test_sequence.py
new file mode 100644
--- /dev/null
+++ b/tests/test_sequence.py
@@ -0,0 +1,277 @@
+import asyncio
+
+import msgpack
+import pytest
+from async_asgi_testclient import TestClient
+from pydantic import ValidationError
+from starlette import status
+
+from app.app import app
+from app.constants import (
+    JOB_FAILED_ERROR_MESSAGE,
+    NO_JOB_FOUND_MESSAGE,
+    SEARCH_IN_PROGRESS_MESSAGE,
+)
+from app.exception import RequestSubmissionException
+from app.sequence.helper import submit_sequence_search_job
+from app.sequence.schema import SequenceIdType, SequenceOverview
+from app.sequence.sequence import fetch_sequence_summary
+from tests.utils import StubHttpResponse
+
+client = TestClient(app)
+
+
+@pytest.mark.asyncio
+async def test_search_job_id_from_cache(
+    mocker,
+    sample_sequence,
+    sample_sequence_hash,
+):
+    mocker.patch(
+        "app.sequence.sequence.get_jobdispatcher_id", return_value="non-existing-job-id"
+    )
+
+    response = await client.post("/sequence/search", json={"sequence": sample_sequence})
+
+    assert response.json() == {"job_id": sample_sequence_hash}
+    assert response.status_code == status.HTTP_200_OK
+
+
+@pytest.mark.asyncio
+async def test_result_api_no_job_id(
+    mocker,
+):
+    mocker.patch("app.sequence.sequence.get_celery_task_id", return_value=None)
+    clear_mock = mocker.patch("app.sequence.helper.clear_jobdispatcher_id")
+
+    response = await client.get(
+        "/sequence/result?job_id=ncbiblast-2021-01-01-12-12-12",
+    )
+
+    clear_mock.assert_called_once()
+    assert response.status_code == status.HTTP_400_BAD_REQUEST
+    assert response.json() == {"message": NO_JOB_FOUND_MESSAGE}
+
+
+@pytest.mark.asyncio
+async def test_result_api_valid_job_id_and_issue_in_celery_job(
+    mocker,
+    failed_async_result,
+):
+    mocker.patch(
+        "app.sequence.sequence.get_celery_task_id", return_value="valid-job-id"
+    )
+    mocker.patch("app.sequence.sequence.AsyncResult", return_value=failed_async_result)
+    clear_mock_one = mocker.patch("app.sequence.sequence.clear_jobdispatcher_id")
+    clear_mock_two = mocker.patch("app.sequence.sequence.clear_celery_task_id")
+
+    response = await client.get(
+        "/sequence/result?job_id=ncbiblast-2021-01-01-12-12-12",
+    )
+
+    clear_mock_one.assert_called_once()
+    clear_mock_two.assert_called_once()
+    assert response.status_code == status.HTTP_400_BAD_REQUEST
+    assert response.json() == {"message": JOB_FAILED_ERROR_MESSAGE}
+
+
+@pytest.mark.asyncio
+async def test_result_api_valid_job_id_and_job_pending(mocker, pending_async_result):
+    mocker.patch(
+        "app.sequence.sequence.get_celery_task_id", return_value="valid-job-id"
+    )
+
+    mocker.patch("app.sequence.sequence.AsyncResult", return_value=pending_async_result)
+
+    response = await client.get(
+        "/sequence/result?job_id=ncbiblast-2021-01-01-12-12-12",
+    )
+
+    assert response.status_code == status.HTTP_202_ACCEPTED
+    assert response.json() == {"message": SEARCH_IN_PROGRESS_MESSAGE}
+
+
+@pytest.mark.asyncio
+async def test_result_api_valid_job_id_and_job_finished(
+    mocker,
+    finished_none_async_result,
+):
+    future = asyncio.Future()
+    future.set_result(msgpack.dumps("ncbiblast-2021-01-01-12-12-12"))
+    mocker.patch(
+        "app.sequence.sequence.get_celery_task_id", return_value="valid-job-id"
+    )
+
+    mocker.patch(
+        "app.sequence.sequence.AsyncResult", return_value=finished_none_async_result
+    )
+
+    response = await client.get(
+        "/sequence/result?job_id=ncbiblast-2021-01-01-12-12-12",
+    )
+
+    assert response.status_code == status.HTTP_404_NOT_FOUND
+    assert response.json() == {}
+
+
+@pytest.mark.asyncio
+async def test_submit_sequence_search_job_valid(mocker, sample_sequence):
+    future = asyncio.Future()
+    future.set_result(
+        StubHttpResponse(status_code=200, data="ncbiblast-2021-01-01-12-12-12")
+    )
+    mocker.patch("app.sequence.helper.request_post", return_value=future)
+
+    with pytest.raises(RequestSubmissionException):
+        assert (
+            await submit_sequence_search_job(sample_sequence)
+            == "ncbiblast-2021-01-01-12-12-12"
+        )
+
+
+@pytest.mark.asyncio
+async def test_submit_sequence_search_job_invalid(mocker, sample_sequence):
+    future = asyncio.Future()
+    future.set_result(None)
+    mocker.patch("app.sequence.helper.request_post", return_value=future)
+
+    with pytest.raises(RequestSubmissionException):
+        assert await submit_sequence_search_job(sample_sequence)
+
+        @pytest.mark.asyncio
+        async def test_fetch_sequence_summary_success(mocker):
+            # Mock get_services to return a single service
+            mocker.patch(
+                "app.sequence.sequence.get_services",
+                return_value=[
+                    {"provider": "test_provider", "accessPoint": "test_access"}
+                ],
+            )
+            # Mock get_base_service_url to return a base url
+            mocker.patch(
+                "app.sequence.sequence.get_base_service_url",
+                return_value="http://test-service",
+            )
+            # Mock get_final_service_url to return a final url
+            mocker.patch(
+                "app.sequence.sequence.get_final_service_url",
+                return_value="http://test-service/test_access?id=abc&type=sequence",
+            )
+            # Prepare a valid response
+            valid_json = {
+                "entry": {"id": "abc", "name": "test_entry"},
+                "structures": [
+                    {"id": "str1", "provider": "test_provider", "other_field": "value"}
+                ],
+            }
+
+            # Patch send_async_requests to return a list with a mock response
+            class MockResponse:
+                status_code = 200
+
+                def json(self):
+                    return valid_json
+
+            mocker.patch(
+                "app.sequence.sequence.send_async_requests",
+                return_value=[MockResponse()],
+            )
+            # Patch SequenceOverview and Entry to accept the test dicts
+            mocker.patch(
+                "app.sequence.sequence.SequenceOverview",
+                side_effect=lambda **kwargs: type("S", (), kwargs)(),
+            )
+            mocker.patch(
+                "app.sequence.sequence.Entry",
+                side_effect=lambda **kwargs: type("E", (), kwargs)(),
+            )
+            # Patch SequenceSummary to accept the test dicts
+            mocker.patch(
+                "app.sequence.sequence.SequenceSummary",
+                side_effect=lambda **kwargs: type("SS", (), kwargs)(),
+            )
+
+            result = await fetch_sequence_summary("abc", SequenceIdType.SEQUENCE)
+            assert result is not None
+
+        @pytest.mark.asyncio
+        async def test_fetch_sequence_summary_no_services(mocker):
+            mocker.patch("app.sequence.sequence.get_services", return_value=[])
+            result = await fetch_sequence_summary("abc", SequenceIdType.SEQUENCE)
+            assert result is None
+
+        @pytest.mark.asyncio
+        async def test_fetch_sequence_summary_no_valid_responses(mocker):
+            mocker.patch(
+                "app.sequence.sequence.get_services",
+                return_value=[
+                    {"provider": "test_provider", "accessPoint": "test_access"}
+                ],
+            )
+            mocker.patch(
+                "app.sequence.sequence.get_base_service_url",
+                return_value="http://test-service",
+            )
+            mocker.patch(
+                "app.sequence.sequence.get_final_service_url",
+                return_value="http://test-service/test_access?id=abc&type=sequence",
+            )
+
+            # Mock send_async_requests to return a response with non-200 status
+            class MockResponse:
+                status_code = 404
+
+                def json(self):
+                    return {}
+
+            mocker.patch(
+                "app.sequence.sequence.send_async_requests",
+                return_value=[MockResponse()],
+            )
+            result = await fetch_sequence_summary("abc", SequenceIdType.SEQUENCE)
+            assert result is None
+
+        @pytest.mark.asyncio
+        async def test_fetch_sequence_summary_invalid_structure_response(mocker):
+            mocker.patch(
+                "app.sequence.sequence.get_services",
+                return_value=[
+                    {"provider": "test_provider", "accessPoint": "test_access"}
+                ],
+            )
+            mocker.patch(
+                "app.sequence.sequence.get_base_service_url",
+                return_value="http://test-service",
+            )
+            mocker.patch(
+                "app.sequence.sequence.get_final_service_url",
+                return_value="http://test-service/test_access?id=abc&type=sequence",
+            )
+            # Prepare a response with an invalid structure (will raise ValidationError)
+            invalid_json = {
+                "entry": {"id": "abc", "name": "test_entry"},
+                "structures": [
+                    {
+                        "provider": "test_provider"
+                        # missing required fields for SequenceOverview
+                    }
+                ],
+            }
+
+            class MockResponse:
+                status_code = 200
+
+                def json(self):
+                    return invalid_json
+
+            mocker.patch(
+                "app.sequence.sequence.send_async_requests",
+                return_value=[MockResponse()],
+            )
+            # Patch SequenceOverview to raise ValidationError
+            mocker.patch(
+                "app.sequence.sequence.SequenceOverview",
+                side_effect=ValidationError([], model=SequenceOverview),
+            )
+            result = await fetch_sequence_summary("abc", SequenceIdType.SEQUENCE)
+            assert result is None
diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100644
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,97 @@
+from app.config import get_base_service_url, get_services
+from app.uniprot.uniprot import filter_on_checksum, get_first_entry_with_checksum
+from app.utils import get_final_service_url
+from app.version import __major__version__
+
+
+def test_get_final_service_url():
+    assert (
+        get_final_service_url("http://example.com", "api", "v1")
+        == f"http://example.com/api/v1?version={__major__version__}"
+    )
+
+
+def test_filter_on_checksum():
+    in_list = [
+        {"uniprot_entry": {"uniprot_checksum": "123"}},
+        {"uniprot_entry": {"uniprot_checksum": "1234"}},
+        {"uniprot_entry": {}},
+    ]
+
+    assert filter_on_checksum(in_list, "123") == [
+        {"uniprot_entry": {"uniprot_checksum": "123"}}
+    ]
+
+
+def test_get_first_entry_with_checksum_valid():
+    in_list = [
+        {"uniprot_entry": {"ac": "P12345"}},
+        {"uniprot_entry": {"ac": "P23456", "uniprot_checksum": "123"}},
+        {"uniprot_entry": {"ac": "P34567", "uniprot_checksum": "123"}},
+    ]
+
+    assert get_first_entry_with_checksum(in_list) == {
+        "ac": "P23456",
+        "uniprot_checksum": "123",
+    }
+
+
+def test_get_first_entry_with_checksum_none():
+    in_list = []
+
+    assert not get_first_entry_with_checksum(in_list)
+
+
+def test_get_first_entry_with_checksum_valid_no_checksum():
+    in_list = [
+        {"uniprot_entry": {"ac": "P12345"}},
+        {"uniprot_entry": {"ac": "P23456"}},
+        {"uniprot_entry": {"ac": "P34567"}},
+    ]
+
+    assert get_first_entry_with_checksum(in_list) == {"ac": "P12345"}
+
+
+def test_get_services(mocker, registry):
+    mocker.patch("app.config.read_data_file", return_value=registry)
+    assert get_services(service_type="serviceOne") == [
+        {
+            "serviceType": "serviceOne",
+            "provider": "providerOne",
+            "accessPoint": "service/",
+        },
+        {
+            "serviceType": "serviceOne",
+            "provider": "providerTwo",
+            "accessPoint": "service/v/",
+        },
+    ]
+
+
+def test_get_services_exclude_provider(mocker, registry):
+    mocker.patch("app.config.read_data_file", return_value=registry)
+    assert get_services(service_type="serviceOne", exclude_provider="providerTwo") == [
+        {
+            "serviceType": "serviceOne",
+            "provider": "providerOne",
+            "accessPoint": "service/",
+        },
+    ]
+
+
+def test_get_services_provider(mocker, registry):
+    mocker.patch("app.config.read_data_file", return_value=registry)
+    assert get_services(service_type="serviceOne", provider="providerOne") == [
+        {
+            "serviceType": "serviceOne",
+            "provider": "providerOne",
+            "accessPoint": "service/",
+        },
+    ]
+
+
+def test_get_base_service_url(mocker, registry):
+    mocker.patch("app.config.get_providers", return_value=registry["providers"])
+    assert (
+        get_base_service_url("providerOneId") == "https://providerOneDevBaseServiceUrl"
+    )
diff --git a/tests/test_worker.py b/tests/test_worker.py
new file mode 100644
--- /dev/null
+++ b/tests/test_worker.py
@@ -0,0 +1,58 @@
+import json
+
+import pytest
+
+from tests.utils import StubHttpResponse
+from worker.helper import (
+    JobResultsNotFoundException,
+    filter_json_results,
+    get_job_dispatcher_json_results,
+    prepare_accession_list,
+    prepare_hit_dictionary,
+)
+from worker.schema import AccessionListRequest
+
+
+def test_prepare_accession_list():
+    accessions = ["P12345", "P23456", "P34567"]
+    assert prepare_accession_list(accessions) == AccessionListRequest(
+        accessions=accessions
+    )
+
+
+def test_filter_json_results_90(seq_search_response):
+    assert len(filter_json_results(seq_search_response.data, 90)) == 6
+
+
+def test_filter_json_results_95(seq_search_response):
+    assert len(filter_json_results(seq_search_response.data, 95)) == 4
+
+
+def test_prepare_hit_dictionary(seq_search_response):
+    filtered_hits = filter_json_results(seq_search_response.data, 95)
+    expected_hit_dictionary = {}
+
+    with open("tests/stubs/hit_dictionary.json", "r") as f:
+        expected_hit_dictionary = json.loads(f.read())
+
+    assert prepare_hit_dictionary(filtered_hits) == expected_hit_dictionary
+
+
+@pytest.mark.asyncio
+async def test_get_job_dispatcher_json_results_valid(mocker, sample_sequence_hash):
+    mocker.patch(
+        "worker.helper.requests.get",
+        return_value=StubHttpResponse(status_code=200, data={"results": "results"}),
+    )
+
+    assert get_job_dispatcher_json_results(sample_sequence_hash) == {
+        "results": "results"
+    }
+
+
+@pytest.mark.asyncio
+async def test_get_job_dispatcher_json_results_invalid(mocker, sample_sequence_hash):
+    mocker.patch("worker.helper.requests.get", return_value=None)
+
+    with pytest.raises(JobResultsNotFoundException):
+        assert get_job_dispatcher_json_results(sample_sequence_hash)
diff --git a/tests/utils.py b/tests/utils.py
new file mode 100644
--- /dev/null
+++ b/tests/utils.py
@@ -0,0 +1,47 @@
+import json
+
+
+async def request_get_stub(url: str, stub_for: str, status_code: int = 200):
+    """Returns an object with stub response.
+
+    Args:
+        url (str): A request URL.
+        stub_for (str): Type of stub required.
+
+    Returns:
+        StubResponse: A StubResponse object.
+    """
+    return StubResponse(stub_for=stub_for, status_code=status_code)
+
+
+class StubResponse:
+    """A Stub response class to return a response from JSON."""
+
+    def __init__(self, status_code: int, stub_for: str) -> None:
+        self.status_code = status_code
+        self.prefix = "tests/stubs/"
+        self.data = {}
+
+        with open(f"{self.prefix}/{stub_for}.json") as f:
+            self.data = json.load(f)
+
+    def json(self):
+        return self.data
+
+
+class Content:
+    def __init__(self, data) -> None:
+        self.data = data
+
+    def decode(self):
+        return self.data
+
+
+class StubHttpResponse:
+    def __init__(self, status_code: int, data):
+        self.status_code = status_code
+        self.content = Content(data)
+        self.data = data
+
+    def json(self):
+        return self.data
diff --git a/tests/stubs/annotations_response.json b/tests/stubs/annotations_response.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/annotations_response.json
@@ -0,0 +1,49 @@
+{
+    "accession": "Q14676",
+    "id": "MDC1_HUMAN",
+    "sequence": "MEDTQAIDWDVEEEEETEQSSESLRCNVEPVGRLHIFSGAHGPEKDFPLHLGKNVVGRMPDCSVALPFPSISKQHAEIEILAWDKAPILRDCGSLNGTQILRPPKVLSPGVSHRLRDQELILFADLLCQYHRLDVSLPFVSRGPLTVEETPRVQGETQPQRLLLAEDSEEEVDFLSERRMVKKSRTTSSSVIVPESDEEGHSPVLGGLGPPFAFNLNSDTDVEEGQQPATEEASSAARRGATVEAKQSEAEVVTEIQLEKDQPLVKERDNDTKVKRGAGNGVVPAGVILERSQPPGEDSDTDVDDDSRPPGRPAEVHLERAQPFGFIDSDTDAEEERIPATPVVIPMKKRKIFHGVGTRGPGAPGLAHLQESQAGSDTDVEEGKAPQAVPLEKSQASMVINSDTDDEEEVSAALTLAHLKESQPAIWNRDAEEDMPQRVVLLQRSQTTTERDSDTDVEEEELPVENREAVLKDHTKIRALVRAHSEKDQPPFGDSDDSVEADKSSPGIHLERSQASTTVDINTQVEKEVPPGSAIIHIKKHQVSVEGTNQTDVKAVGGPAKLLVVSLEEAWPLHGDCETDAEEGTSLTASVVADVRKSQLPAEGDAGAEWAAAVLKQERAHEVGAQGGPPVAQVEQDLPISRENLTDLVVDTDTLGESTQPQREGAQVPTGREREQHVGGTKDSEDNYGDSEDLDLQATQCFLENQGLEAVQSMEDEPTQAFMLTPPQELGPSHCSFQTTGTLDEPWEVLATQPFCLRESEDSETQPFDTHLEAYGPCLSPPRAIPGDQHPESPVHTEPMGIQGRGRQTVDKVMGIPKETAERVGPERGPLERETEKLLPERQTDVTGEEELTKGKQDREQKQLLARDTQRQESDKNGESASPERDRESLKVEIETSEEIQEKQVQKQTLPSKAFEREVERPVANRECDPAELEEKVPKVILERDTQRGEPEGGSQDQKGQASSPTPEPGVGAGDLPGPTSAPVPSGSQSGGRGSPVSPRRHQKGLLNCKMPPAEKASRIRAAEKVSRGDQESPDACLPPTVPEAPAPPQKPLNSQSQKHLAPPPLLSPLLPSIKPTVRKTRQDGSQEAPEAPLSSELEPFHPKPKIRTRKSSRMTPFPATSAAPEPHPSTSTAQPVTPKPTSQATRSRTNRSSVKTPEPVVPTAPELQPSTSTDQPVTSEPTSQVTRGRKSRSSVKTPETVVPTALELQPSTSTDRPVTSEPTSQATRGRKNRSSVKTPEPVVPTAPELQPSTSTDQPVTSEPTYQATRGRKNRSSVKTPEPVVPTAPELRPSTSTDRPVTPKPTSRTTRSRTNMSSVKTPETVVPTAPELQISTSTDQPVTPKPTSRTTRSRTNMSSVKNPESTVPIAPELPPSTSTEQPVTPEPTSRATRGRKNRSSGKTPETLVPTAPKLEPSTSTDQPVTPEPTSQATRGRTNRSSVKTPETVVPTAPELQPSTSTDQPVTPEPTSQATRGRTDRSSVKTPETVVPTAPELQASASTDQPVTSEPTSRTTRGRKNRSSVKTPETVVPAAPELQPSTSTDQPVTPEPTSRATRGRTNRSSVKTPESIVPIAPELQPSTSRNQLVTPEPTSRATRCRTNRSSVKTPEPVVPTAPEPHPTTSTDQPVTPKLTSRATRRKTNRSSVKTPKPVEPAASDLEPFTPTDQSVTPEAIAQGGQSKTLRSSTVRAMPVPTTPEFQSPVTTDQPISPEPITQPSCIKRQRAAGNPGSLAAPIDHKPCSAPLEPKSQASRNQRWGAVRAAESLTAIPEPASPQLLETPIHASQIQKVEPAGRSRFTPELQPKASQSRKRSLATMDSPPHQKQPQRGEVSQKTVIIKEEEEDTAEKPGKEEDVVTPKPGKRKRDQAEEEPNRIPSRSLRRTKLNQESTAPKVLFTGVVDARGERAVLALGGSLAGSAAEASHLVTDRIRRTVKFLCALGRGIPILSLDWLHQSRKAGFFLPPDEYVVTDPEQEKNFGFSLQDALSRARERRLLEGYEIYVTPGVQPPPPQMGEIISCCGGTYLPSMPRSYKPQRVVITCPQDFPHCSIPLRVGLPLLSPEFLLTGVLKQEAKPEAFVLSPLEMSST",
+    "annotation": [
+      {
+        "type": "DOMAIN",
+        "description": "Tumour Suppressor Smad4 (3uotA00)",
+        "source_name": "CATH",
+        "evidence": "COMPUTATIONAL/PREDICTED",
+        "residues": [
+          19,
+          20,
+          21,
+          22,
+          23
+        ],
+        "regions": [
+          {
+            "start": 19,
+            "end": 23
+          }
+        ]
+      },
+      {
+        "type": "DOMAIN",
+        "description": "BRCT domain (IPR001357)",
+        "source_name": "InterPro",
+        "evidence": "COMPUTATIONAL/PREDICTED",
+        "residues": [
+          1889,
+          1890,
+          1891,
+          1892,
+          1893,
+          1894,
+          1895,
+          1896,
+          1897
+        ],
+        "regions": [
+          {
+            "start": 1889,
+            "end": 1897
+          }
+        ]
+      }
+    ]
+  }
diff --git a/tests/stubs/gifts_response.json b/tests/stubs/gifts_response.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/gifts_response.json
@@ -0,0 +1,1 @@
+{"taxonomy":{"species":"Homo sapiens","ensemblTaxId":9606,"uniprotTaxId":9606},"entryMappings":[{"id":3946552,"mappingId":5357997,"groupingId":2010220,"timeMapped":"2022-05-31T12:31:15.321882Z","uniprotRelease":"2022_02","ensemblRelease":"105","uniprotEntry":{"uniprot_id":1263210,"uniprotAccession":"A0A8I5KS94","entryType":"TrEMBL","sequenceVersion":1,"upi":"UPI001E246DBC","md5":"2664563FCA54B44536D4380662BE87E3","isCanonical":true,"alias":null,"ensemblDerived":true,"gene_symbol":"ARHGAP11A-SCG5","gene_accession":"","length":623,"protein_existence_id":4},"ensemblTranscript":{"transcript_id":5507799,"enstId":"ENST00000689909","enstVersion":1,"upi":null,"biotype":"protein_coding","deleted":false,"chromosome":"15","regionAccession":"CM000677.2","seqRegionStart":32613860,"seqRegionEnd":32697077,"seqRegionStrand":1,"ensgId":"ENSG00000288864","ensgName":"ARHGAP11A-SCG5 readthrough","sequence":null,"ensgSymbol":"ARHGAP11A-SCG5","ensgAccession":"114118903","ensgRegionAccession":"CM000677.2","enspId":"ENSP00000510704","enspLen":623,"source":"havana","select":null},"alignment_difference":0,"status":"NOT_REVIEWED","status_history":[]},{"id":3946310,"mappingId":5357480,"groupingId":2010220,"timeMapped":"2022-05-31T12:31:15.321882Z","uniprotRelease":"2022_02","ensemblRelease":"105","uniprotEntry":{"uniprot_id":1263749,"uniprotAccession":"A0A8I5KWH8","entryType":"TrEMBL","sequenceVersion":1,"upi":"UPI00100D9C18","md5":"2AD04D04A00DD95D1864432478D7E2F7","isCanonical":true,"alias":null,"ensemblDerived":true,"gene_symbol":"ARHGAP11A-SCG5","gene_accession":"","length":625,"protein_existence_id":4},"ensemblTranscript":{"transcript_id":5507800,"enstId":"ENST00000692248","enstVersion":1,"upi":"UPI00100D9C18","biotype":"protein_coding","deleted":false,"chromosome":"15","regionAccession":"CM000677.2","seqRegionStart":32615448,"seqRegionEnd":32697095,"seqRegionStrand":1,"ensgId":"ENSG00000288864","ensgName":"ARHGAP11A-SCG5 readthrough","sequence":null,"ensgSymbol":"ARHGAP11A-SCG5","ensgAccession":"114118903","ensgRegionAccession":"CM000677.2","enspId":"ENSP00000510771","enspLen":625,"source":"havana","select":null},"alignment_difference":null,"status":"NOT_REVIEWED","status_history":[]}]}
diff --git a/tests/stubs/hit_dictionary.json b/tests/stubs/hit_dictionary.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/hit_dictionary.json
@@ -0,0 +1,86 @@
+{
+    "B4DKT3": {
+        "accession": "B4DKT3",
+        "description": "cDNA FLJ58390, highly similar to Aldo-keto reductase family 1 member C3homolog OS=Homo sapiens OX=9606 PE=2 SV=1",
+        "hit_length": 138,
+        "id": "B4DKT3_HUMAN",
+        "hit_uni_os":"Homo sapiens",
+        "hit_uni_ox": 9606,
+        "hit_hsps": [
+            {
+                "hsp_score": 637,
+                "hsp_bit_score": 249.98,
+                "hsp_expect": 1.8e-83,
+                "hsp_align_len": 122,
+                "hsp_identity": 100,
+                "hsp_positive": 100,
+                "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+            }
+        ]
+    },
+    "A0A2I3HVB7": {
+        "accession": "A0A2I3HVB7",
+        "description": "Aldo-keto reductase family 1 member C3 OS=Nomascus leucogenys OX=61853 GN=AKR1C3 PE=3 SV=1",
+        "hit_length": 323,
+        "id": "A0A2I3HVB7_NOMLE",
+        "hit_uni_os": "Nomascus leucogenys",
+        "hit_uni_ox": 61853,
+        "hit_hsps": [
+            {
+                "hsp_score": 637,
+                "hsp_bit_score": 249.98,
+                "hsp_align_len": 122,
+                "hsp_expect": 7.7e-81,
+                "hsp_identity": 100,
+                "hsp_positive": 100,
+                "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+            }
+        ]
+    },
+    "A0A2R9A0L9": {
+        "accession": "A0A2R9A0L9",
+        "description": "Aldo-keto reductase family 1 member C3 OS=Pan paniscus OX=9597 GN=AKR1C3 PE=3 SV=1",
+        "hit_length": 323,
+        "id": "A0A2R9A0L9_PANPA",
+        "hit_uni_os": "Pan paniscus",
+        "hit_uni_ox": 9597,
+        "hit_hsps": [
+            {
+                "hsp_score": 637,
+                "hsp_bit_score": 249.98,
+                "hsp_align_len": 122,
+                "hsp_expect": 7.7e-81,
+                "hsp_identity": 100,
+                "hsp_positive": 100,
+                "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+            }
+        ]
+    },
+    "K7D0S3": {
+        "accession": "K7D0S3",
+        "description": "Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II) OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+        "hit_length": 323,
+        "id": "K7D0S3_PANTR",
+        "hit_uni_os": "Pan troglodytes",
+        "hit_uni_ox": 9598,
+        "hit_hsps": [
+            {
+                "hsp_score": 637,
+                "hsp_bit_score": 249.98,
+                "hsp_align_len": 122,
+                "hsp_expect": 7.7e-81,
+                "hsp_identity": 95,
+                "hsp_positive": 100,
+                "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+            }
+        ]
+    }
+}
diff --git a/tests/stubs/registry.json b/tests/stubs/registry.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/registry.json
@@ -0,0 +1,37 @@
+{
+    "providers": [
+        {
+            "providerId": "providerOneId",
+            "providerName": "providerOneName",
+            "providerDescription": "providerOneDesc",
+            "providerUrl": "https://providerOneUrl",
+            "baseServiceUrl": "https://providerOneBaseServiceUrl",
+            "devBaseServiceUrl": "https://providerOneDevBaseServiceUrl"
+        },
+        {
+            "providerId": "providerTwoId",
+            "providerName": "providerTwoName",
+            "providerDescription": "providerTwoDesc",
+            "providerUrl": "https://providerTwoUrl",
+            "baseServiceUrl": "https://providerTwoBaseServiceUrl",
+            "devBaseServiceUrl": "https://providerTwoDevBaseServiceUrl"
+        }
+    ],
+    "services": [
+        {
+            "serviceType": "serviceOne",
+            "provider": "providerOne",
+            "accessPoint": "service/"
+        },
+        {
+            "serviceType": "serviceOne",
+            "provider": "providerTwo",
+            "accessPoint": "service/v/"
+        },
+        {
+            "serviceType": "serviceTwo",
+            "provider": "providerOne",
+            "accessPoint": "service/2/"
+        }
+    ]
+}
diff --git a/tests/stubs/seq_search_response.json b/tests/stubs/seq_search_response.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/seq_search_response.json
@@ -0,0 +1,427 @@
+{
+    "program": "blastp",
+    "version": "BLASTP 2.12.0+",
+    "command": "$APPBIN/ncbi-blast-2.9.0+/bin/blastp -db "uniprotkb" -query ncbiblast-R20230109-174035-0934-49668747-p2m.sequence  -num_threads 32 -outfmt 11 -out ncbiblast-R20230109-174035-0934-49668747-p2m.archive -seg no -comp_based_stats F",
+    "query_def": "EMBOSS_001",
+    "query_stype": "protein",
+    "query_len": 129,
+    "db_count": 1,
+    "db_num": 230190369,
+    "db_len": 81010115241,
+    "dbs": [
+        {
+            "name": "uniprotkb",
+            "stype": "protein",
+            "created": "2022-12-14T02:19:00+00:00"
+        }
+    ],
+    "expect_upper": 10,
+    "filter": "F",
+    "gap_extend": 1,
+    "gap_open": 11,
+    "matrix": "BLOSUM62",
+    "start": "2023-01-09T17:40:35+00:00",
+    "end": "2023-01-09T17:43:29+00:00",
+    "search": "P0Y0M0DT0H0M174.000S",
+    "hits": [
+        {
+            "hit_num": 1,
+            "hit_def": "TR:B4DKT3 B4DKT3_HUMAN cDNA FLJ58390, highly similar to Aldo-keto reductase family 1 member C3homolog OS=Homo sapiens OX=9606 PE=2 SV=1",
+            "hit_db": "TR",
+            "hit_id": "B4DKT3_HUMAN",
+            "hit_acc": "B4DKT3",
+            "hit_desc": "cDNA FLJ58390, highly similar to Aldo-keto reductase family 1 member C3homolog OS=Homo sapiens OX=9606 PE=2 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/B4DKT3",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=B4DKT3",
+            "hit_os": "Homo sapiens",
+            "hit_uni_de": "cDNA FLJ58390, highly similar to Aldo-keto reductase family 1 member C3homolog",
+            "hit_uni_os": "Homo sapiens",
+            "hit_uni_ox": "9606",
+            "hit_uni_pe": "2",
+            "hit_uni_sv": "1",
+            "hit_len": 138,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 1.8e-83,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 100,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 2,
+            "hit_def": "TR:A0A2I3HVB7 A0A2I3HVB7_NOMLE Aldo-keto reductase family 1 member C3 OS=Nomascus leucogenys OX=61853 GN=AKR1C3 PE=3 SV=1",
+            "hit_db": "TR",
+            "hit_id": "A0A2I3HVB7_NOMLE",
+            "hit_acc": "A0A2I3HVB7",
+            "hit_desc": "Aldo-keto reductase family 1 member C3 OS=Nomascus leucogenys OX=61853 GN=AKR1C3 PE=3 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/A0A2I3HVB7",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=A0A2I3HVB7",
+            "hit_os": "Nomascus leucogenys",
+            "hit_uni_de": "Aldo-keto reductase family 1 member C3",
+            "hit_uni_os": "Nomascus leucogenys",
+            "hit_uni_ox": "61853",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "3",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 100,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 3,
+            "hit_def": "TR:A0A2R9A0L9 A0A2R9A0L9_PANPA Aldo-keto reductase family 1 member C3 OS=Pan paniscus OX=9597 GN=AKR1C3 PE=3 SV=1",
+            "hit_db": "TR",
+            "hit_id": "A0A2R9A0L9_PANPA",
+            "hit_acc": "A0A2R9A0L9",
+            "hit_desc": "Aldo-keto reductase family 1 member C3 OS=Pan paniscus OX=9597 GN=AKR1C3 PE=3 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/A0A2R9A0L9",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=A0A2R9A0L9",
+            "hit_os": "Pan paniscus",
+            "hit_uni_de": "Aldo-keto reductase family 1 member C3",
+            "hit_uni_os": "Pan paniscus",
+            "hit_uni_ox": "9597",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "3",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 100,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 4,
+            "hit_def": "TR:K7D0S3 K7D0S3_PANTR Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II) OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+            "hit_db": "TR",
+            "hit_id": "K7D0S3_PANTR",
+            "hit_acc": "K7D0S3",
+            "hit_desc": "Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II) OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/K7D0S3",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=K7D0S3",
+            "hit_os": "Pan troglodytes",
+            "hit_uni_de": "Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II)",
+            "hit_uni_os": "Pan troglodytes",
+            "hit_uni_ox": "9598",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "2",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 95,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 5,
+            "hit_def": "TR:A0A6D2VZ66 A0A6D2VZ66_PANTR AKR1C3 isoform 2 OS=Pan troglodytes OX=9598 GN=CK820_G0036122 PE=3 SV=1",
+            "hit_db": "TR",
+            "hit_id": "A0A6D2VZ66_PANTR",
+            "hit_acc": "A0A6D2VZ66",
+            "hit_desc": "AKR1C3 isoform 2 OS=Pan troglodytes OX=9598 GN=CK820_G0036122 PE=3 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/A0A6D2VZ66",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=A0A6D2VZ66",
+            "hit_os": "Pan troglodytes",
+            "hit_uni_de": "AKR1C3 isoform 2",
+            "hit_uni_os": "Pan troglodytes",
+            "hit_uni_ox": "9598",
+            "hit_uni_gn": "CK820_G0036122",
+            "hit_uni_pe": "3",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 94,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 6,
+            "hit_def": "TR:K7CEU8 K7CEU8_PANTR Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II) OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+            "hit_db": "TR",
+            "hit_id": "K7CEU8_PANTR",
+            "hit_acc": "K7CEU8",
+            "hit_desc": "Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II) OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/K7CEU8",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=K7CEU8",
+            "hit_os": "Pan troglodytes",
+            "hit_uni_de": "Aldo-keto reductase family 1, member C3 (3-alpha hydroxysteroid dehydrogenase, type II)",
+            "hit_uni_os": "Pan troglodytes",
+            "hit_uni_ox": "9598",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "2",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 91,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 7,
+            "hit_def": "TR:A0A2I3SPE1 A0A2I3SPE1_PANTR Aldo-keto reductase family 1 member C3 OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+            "hit_db": "TR",
+            "hit_id": "A0A2I3SPE1_PANTR",
+            "hit_acc": "A0A2I3SPE1",
+            "hit_desc": "Aldo-keto reductase family 1 member C3 OS=Pan troglodytes OX=9598 GN=AKR1C3 PE=2 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/A0A2I3SPE1",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=A0A2I3SPE1",
+            "hit_os": "Pan troglodytes",
+            "hit_uni_de": "Aldo-keto reductase family 1 member C3",
+            "hit_uni_os": "Pan troglodytes",
+            "hit_uni_ox": "9598",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "2",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 89,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 8,
+            "hit_def": "SP:Q5R7C9 AK1C3_PONAB Aldo-keto reductase family 1 member C3 OS=Pongo abelii OX=9601 GN=AKR1C3 PE=2 SV=1",
+            "hit_db": "SP",
+            "hit_id": "AK1C3_PONAB",
+            "hit_acc": "Q5R7C9",
+            "hit_desc": "Aldo-keto reductase family 1 member C3 OS=Pongo abelii OX=9601 GN=AKR1C3 PE=2 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/Q5R7C9",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=Q5R7C9",
+            "hit_os": "Pongo abelii",
+            "hit_uni_de": "Aldo-keto reductase family 1 member C3",
+            "hit_uni_os": "Pongo abelii",
+            "hit_uni_ox": "9601",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "2",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 70,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 9,
+            "hit_def": "SP:P42330 AK1C3_HUMAN Aldo-keto reductase family 1 member C3 OS=Homo sapiens OX=9606 GN=AKR1C3 PE=1 SV=4",
+            "hit_db": "SP",
+            "hit_id": "AK1C3_HUMAN",
+            "hit_acc": "P42330",
+            "hit_desc": "Aldo-keto reductase family 1 member C3 OS=Homo sapiens OX=9606 GN=AKR1C3 PE=1 SV=4",
+            "hit_url": "https://www.uniprot.org/uniprot/P42330",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=P42330",
+            "hit_os": "Homo sapiens",
+            "hit_uni_de": "Aldo-keto reductase family 1 member C3",
+            "hit_uni_os": "Homo sapiens",
+            "hit_uni_ox": "9606",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "1",
+            "hit_uni_sv": "4",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 637,
+                    "hsp_bit_score": 249.98,
+                    "hsp_expect": 7.7e-81,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 87,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        },
+        {
+            "hit_num": 10,
+            "hit_def": "TR:A0A2R9A1P7 A0A2R9A1P7_PANPA Aldo-keto reductase family 1 member C3 OS=Pan paniscus OX=9597 GN=AKR1C3 PE=3 SV=1",
+            "hit_db": "TR",
+            "hit_id": "A0A2R9A1P7_PANPA",
+            "hit_acc": "A0A2R9A1P7",
+            "hit_desc": "Aldo-keto reductase family 1 member C3 OS=Pan paniscus OX=9597 GN=AKR1C3 PE=3 SV=1",
+            "hit_url": "https://www.uniprot.org/uniprot/A0A2R9A1P7",
+            "hit_xref_url": "https://www.ebi.ac.uk/ebisearch/search.ebi?db=uniprot&query=A0A2R9A1P7",
+            "hit_os": "Pan paniscus",
+            "hit_uni_de": "Aldo-keto reductase family 1 member C3",
+            "hit_uni_os": "Pan paniscus",
+            "hit_uni_ox": "9597",
+            "hit_uni_gn": "AKR1C3",
+            "hit_uni_pe": "3",
+            "hit_uni_sv": "1",
+            "hit_len": 323,
+            "hit_hsps": [
+                {
+                    "hsp_num": 1,
+                    "hsp_score": 634,
+                    "hsp_bit_score": 248.825,
+                    "hsp_expect": 2.2e-80,
+                    "hsp_align_len": 122,
+                    "hsp_identity": 82,
+                    "hsp_positive": 100,
+                    "hsp_gaps": 0,
+                    "hsp_query_frame": "0",
+                    "hsp_hit_frame": "0",
+                    "hsp_strand": "none/none",
+                    "hsp_query_from": 8,
+                    "hsp_query_to": 129,
+                    "hsp_hit_from": 2,
+                    "hsp_hit_to": 123,
+                    "hsp_qseq": "DSKHQCVKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_mseq": "DSKHQC+KLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK",
+                    "hsp_hseq": "DSKHQCLKLNDGHFMPVLGFGTYAPPEVPRSKALEVTKLAIEAGFRHIDSAHLYNNEEQVGLAIRSKIADGSVKREDIFYTSKLWSTFHRPELVRPALENSLKKAQLDYVDLYLIHSPMSLK"
+                }
+            ]
+        }
+    ]
+}
diff --git a/tests/stubs/uniprot.json b/tests/stubs/uniprot.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/uniprot.json
@@ -0,0 +1,1 @@
+{"uniprot_entry":{"ac":"P07550","id":"ADRB2_HUMAN","uniprot_checksum":"408C22731C6EDFBE","sequence_length":413,"segment_start":null,"segment_end":null},"structures":[{"summary":{"model_identifier":"4lde","model_category":"EXPERIMENTALLY DETERMINED","model_url":"https://www.ebi.ac.uk/pdbe/static/entry/4lde_updated.cif","model_format":"MMCIF","model_type":null,"model_page_url":"https://www.ebi.ac.uk/pdbe/entry/pdb/4lde","provider":"PDBe","number_of_conformers":null,"ensemble_sample_url":null,"ensemble_sample_format":null,"created":"2013-06-24","sequence_identity":90,"uniprot_start":29,"uniprot_end":348,"coverage":70.7,"experimental_method":"X-RAY DIFFRACTION","resolution":2.79,"confidence_type":null,"confidence_version":null,"confidence_avg_local_score":null,"oligomeric_state":null,"preferred_assembly_id":null,"entities":[{"entity_type":"POLYMER","entity_poly_type":"POLYPEPTIDE(L)","identifier":"P00720","identifier_category":"UNIPROT","description":"Lysozyme, Beta-2 adrenergic receptor","chain_ids":["A"]},{"entity_type":"NON-POLYMER","entity_poly_type":null,"identifier":"NA","identifier_category":"CCD","description":"SODIUM ION","chain_ids":["A"]}]},"chains":[{"chain_id":"A","segments":[{"templates":null,"seqres":{"aligned_sequence":"DEVWVVGMGIVMSLIVLAIVFGNVLVITAIAKFERLQTVTNYFITSLACADLVMGLAVVPFGAAHILTKTWTFGNFWCEFWTSIDVLCVTASIETLCVIAVDRYFAITSPFKYQSLLTKNKARVIILMVWIVSGLTSFLPIQMHWYRATHQEAINCYAEETCCDFFTNQAYAIASSIVSFYVPLVIMVFVYSRVFQEAKRQLQKIDKFALKEHKALKTLGIIMGTFTLCWLPFFIVNIVHVIQDNLIRKEVYILLNWIGYVNSGFNPLIYCRSPDFRIAFQELLCLRRSSLK","from":178,"to":384},"uniprot":{"aligned_sequence":"DEVWVVGMGIVMSLIVLAIVFGNVLVITAIAKFERLQTVTNYFITSLACADLVMGLAVVPFGAAHILMKMWTFGNFWCEFWTSIDVLCVTASIETLCVIAVDRYFAITSPFKYQSLLTKNKARVIILMVWIVSGLTSFLPIQMHWYRATHQEAINCYANETCCDFFTNQAYAIASSIVSFYVPLVIMVFVYSRVFQEAKRQLQKIDKFCLKEHKALKTLGIIMGTFTLCWLPFFIVNIVHVIQDNLIRKEVYILLNWIGYVNSGFNPLIYCRSPDFRIAFQELLCLRRSSLK","from":29,"to":235},"residues":[{"confidence":null,"model_residue_label":178,"uniprot_residue_number":29},{"confidence":null,"model_residue_label":179,"uniprot_residue_number":30}]},{"templates":null,"seqres":{"aligned_sequence":"DEVWVVGMGIVMSLIVLAIVFGNVLVITAIAKFERLQTVTNYFITSLACADLVMGLAVVPFGAAHILTKTWTFGNFWCEFWTSIDVLCVTASIETLCVIAVDRYFAITSPFKYQSLLTKNKARVIILMVWIVSGLTSFLPIQMHWYRATHQEAINCYAEETCCDFFTNQAYAIASSIVSFYVPLVIMVFVYSRVFQEAKRQLQKIDKFALKEHKALKTLGIIMGTFTLCWLPFFIVNIVHVIQDNLIRKEVYILLNWIGYVNSGFNPLIYCRSPDFRIAFQELLCLRRSSLK","from":385,"to":469},"uniprot":{"aligned_sequence":"DEVWVVGMGIVMSLIVLAIVFGNVLVITAIAKFERLQTVTNYFITSLACADLVMGLAVVPFGAAHILMKMWTFGNFWCEFWTSIDVLCVTASIETLCVIAVDRYFAITSPFKYQSLLTKNKARVIILMVWIVSGLTSFLPIQMHWYRATHQEAINCYANETCCDFFTNQAYAIASSIVSFYVPLVIMVFVYSRVFQEAKRQLQKIDKFCLKEHKALKTLGIIMGTFTLCWLPFFIVNIVHVIQDNLIRKEVYILLNWIGYVNSGFNPLIYCRSPDFRIAFQELLCLRRSSLK","from":264,"to":348},"residues":[{"confidence":null,"model_residue_label":385,"uniprot_residue_number":264},{"confidence":null,"model_residue_label":386,"uniprot_residue_number":265}]}]}]}]}
diff --git a/tests/stubs/uniprot_list_summary.json b/tests/stubs/uniprot_list_summary.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/uniprot_list_summary.json
@@ -0,0 +1,1 @@
+[{"uniprot_entry":{"ac":"A0A8I5KS94","id":"A0A8I5KS94_HUMAN","uniprot_checksum":"EA44F0E7563755ED","sequence_length":623,"segment_start":41,"segment_end":250},"structures":[{"summary":{"model_identifier":"A0A8I5KS94_41-250:3eap.1.A","model_category":"TEMPLATE-BASED","model_url":"https://swissmodel.expasy.org/3d-beacons/uniprot/A0A8I5KS94.pdb?range=41-250&template=3eap.1.A&provider=swissmodel","model_format":"PDB","model_type":"ATOMIC","model_page_url":"https://swissmodel.expasy.org/repository/uniprot/A0A8I5KS94?range=41-250&template=3eap.1.A","provider":"SWISS-MODEL","created":"2022-11-13","sequence_identity":1,"uniprot_start":41,"uniprot_end":250,"coverage":0.337,"confidence_type":"QMEANDisCo","confidence_version":"4.3.0","confidence_avg_local_score":0.76,"oligomeric_state":"MONOMER","entities":[{"entity_type":"POLYMER","entity_poly_type":"POLYPEPTIDE(L)","identifier":"A0A8I5KS94","identifier_category":"UNIPROT","description":"model based on template 3eap.1.A:Rho GTPase-activating protein 11A","chain_ids":["A"]}]}}]},{"uniprot_entry":{"ac":"A0A8I5KWH8","id":"A0A8I5KWH8_HUMAN","uniprot_checksum":"7AA3847ABA0CC68B","sequence_length":625,"segment_start":1,"segment_end":252},"structures":[{"summary":{"model_identifier":"A0A8I5KWH8_1-252:3eap.1.A","model_category":"TEMPLATE-BASED","model_url":"https://swissmodel.expasy.org/3d-beacons/uniprot/A0A8I5KWH8.pdb?range=1-252&template=3eap.1.A&provider=swissmodel","model_format":"PDB","model_type":"ATOMIC","model_page_url":"https://swissmodel.expasy.org/repository/uniprot/A0A8I5KWH8?range=1-252&template=3eap.1.A","provider":"SWISS-MODEL","created":"2022-11-13","sequence_identity":1,"uniprot_start":1,"uniprot_end":252,"coverage":0.403,"confidence_type":"QMEANDisCo","confidence_version":"4.3.0","confidence_avg_local_score":0.791,"oligomeric_state":"MONOMER","entities":[{"entity_type":"POLYMER","entity_poly_type":"POLYPEPTIDE(L)","identifier":"A0A8I5KWH8","identifier_category":"UNIPROT","description":"model based on template 3eap.1.A:Rho GTPase-activating protein 11A","chain_ids":["A"]}]}}]}]
diff --git a/tests/stubs/uniprot_summary.json b/tests/stubs/uniprot_summary.json
new file mode 100644
--- /dev/null
+++ b/tests/stubs/uniprot_summary.json
@@ -0,0 +1,1 @@
+{"uniprot_entry":{"ac":"P07550","id":"ADRB2_HUMAN","sequence_length":413},"structures":[{"summary":{"model_identifier":"4lde","model_category":"EXPERIMENTALLY DETERMINED","model_url":"https://www.ebi.ac.uk/pdbe/static/entry/4lde_updated.cif","model_format":"MMCIF","model_page_url":"https://www.ebi.ac.uk/pdbe/entry/pdb/4lde","provider":"PDBe","created":"2013-06-24","sequence_identity":90,"uniprot_start":29,"uniprot_end":348,"coverage":70.7,"experimental_method":"X-RAY DIFFRACTION","resolution":2.79,"entities":[{"entity_type":"POLYMER","entity_poly_type":"POLYPEPTIDE(L)","identifier":"P00720","identifier_category":"UNIPROT","description":"Lysozyme, Beta-2 adrenergic receptor","chain_ids":["A"]},{"entity_type":"NON-POLYMER","identifier":"NA","identifier_category":"CCD","description":"SODIUM ION","chain_ids":["A"]}]}},{"summary":{"model_identifier":"6mxt","model_category":"EXPERIMENTALLY DETERMINED","model_url":"https://www.ebi.ac.uk/pdbe/static/entry/6mxt_updated.cif","model_format":"MMCIF","model_page_url":"https://www.ebi.ac.uk/pdbe/entry/pdb/6mxt","provider":"PDBe","created":"2018-10-31","sequence_identity":91,"uniprot_start":29,"uniprot_end":365,"coverage":74.82,"experimental_method":"X-RAY DIFFRACTION","resolution":2.95934213525,"entities":[{"entity_type":"POLYMER","entity_poly_type":"POLYPEPTIDE(L)","identifier":"P00720","identifier_category":"UNIPROT","description":"Endolysin, Beta-2 adrenergic receptor chimera","chain_ids":["A"]},{"entity_type":"NON-POLYMER","identifier":"OLA","identifier_category":"CCD","description":"OLEIC ACID","chain_ids":["A"]}]}}]}