def METHOD_NAME(self):
    # Test BinaryQuadraticModel constructor
    bqm = oj.BinaryQuadraticModel(self.h, self.J, 'SPIN', sparse=False)
    self.assertEqual(type(bqm.interaction_matrix()), np.ndarray)
    self.assertEqual(bqm.vartype, oj.SPIN)
    dense_graph,offset = bqm.get_cxxjij_ising_graph()
    self.assertTrue(isinstance(dense_graph, cj.graph.Dense))
    self.assertEqual(offset, 0)
    bqm_qubo = oj.BinaryQuadraticModel.from_qubo(Q=self.Q)
    self.assertEqual(bqm_qubo.vartype, oj.BINARY)